Skip to content

Commit

Permalink
Fixed minor bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
leschultz committed Apr 29, 2024
1 parent 21d2490 commit 9a340cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Package information
name = 'madml'
version = '2.5.9' # Need to increment every time to push to PyPI
version = '2.6.0' # Need to increment every time to push to PyPI
description = 'Application domain of machine learning in materials science.'
url = 'https://github.com/leschultz/'\
'materials_application_domain_machine_learning.git'
Expand Down
3 changes: 3 additions & 0 deletions src/madml/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ def fit(self, X, y, g=None, d_input=None, n_jobs=-1):
data_cv['y_stdc_pred'] = self.uq_model.predict(data_cv['y_stdu_pred'])
data_cv['y_stdc_pred/std_y'] = data_cv['y_stdc_pred']/data_cv['std_y']
data_cv['z'] = data_cv['r']/data_cv['y_stdc_pred']
data_cv['|r/std_y|'] = data_cv['y']-data_cv['y_pred']
data_cv['|r/std_y|'] = data_cv['|r/std_y|']/data_cv['std_y']
data_cv['|r/std_y|'] = data_cv['|r/std_y|'].abs()

# Get binned data from alternate forms of sampling
data_cv, bin_cv = bin_data(data_cv, self.bins)
Expand Down

0 comments on commit 9a340cb

Please sign in to comment.