Skip to content

Commit

Permalink
typo bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
gykovacs committed Aug 21, 2022
1 parent ef38e72 commit 8e7d3ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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.7'
__version__= '0.6.8'
9 changes: 6 additions & 3 deletions smote_variants/base/_simplexsampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,12 @@ def simplices(self,
n_to_sample,
p=weights/np.sum(weights))
elif self.simplex_sampling == 'deterministic':
selected_simplices = deterministic_sample(choices,
n_to_sample,
p=weights/np.sum(weights))
selected_indices = deterministic_sample(choices,
n_to_sample,
p=weights/np.sum(weights))
else:
raise ValueError(f"no such simplex sampling strategy: {self.simplex_sampling}")

return all_simplices[selected_indices]

def add_gaussian_noise(self, samples):
Expand Down

0 comments on commit 8e7d3ca

Please sign in to comment.