Skip to content

Commit

Permalink
psobat json serialization fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gykovacs committed Aug 21, 2022
1 parent ea79349 commit 38ca6ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion smote_variants/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
@author: gykovacs
"""

__version__= '0.6.5'
__version__= '0.6.6'
2 changes: 1 addition & 1 deletion smote_variants/oversampling/_smote_psobat.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def pred_test_vectors(self, *, proportion, K, nn_params, X, y):
Returns:
np.array, np.array: the predictions and the test labels
"""
ss_params = self.ss_params
ss_params = self.ss_params.copy()
ss_params['n_dim'] = np.min([ss_params['n_dim'], int(K)])

X_samp, y_samp = SMOTE(proportion=proportion,
Expand Down

0 comments on commit 38ca6ab

Please sign in to comment.