Skip to content

Commit

Permalink
seekability
Browse files Browse the repository at this point in the history
  • Loading branch information
sronilsson committed Dec 30, 2024
1 parent 86e12a7 commit e6a23af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ simba/sandbox
_build/html/
docs/_build
/docs/_build/
/simba/sandbox/
1 change: 1 addition & 0 deletions simba/mixins/statistics_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3906,6 +3906,7 @@ def calinski_harabasz(x: np.ndarray, y: np.ndarray) -> float:
:return: Calinski-Harabasz score.
:float: float
:example:
:example:
>>> x = np.random.random((100, 2)).astype(np.float32)
>>> y = np.random.randint(0, 100, (100,)).astype(np.int64)
Expand Down
10 changes: 5 additions & 5 deletions simba/unsupervised/cluster_validation_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def save(self):
)


# calculator = ClusterValidators(config_path='/Users/simon/Desktop/envs/NG_Unsupervised/project_folder/project_config.ini',
# data_path='/Users/simon/Desktop/envs/NG_Unsupervised/project_folder/small_clusters',
# validator_func=Statistics.calinski_harabasz)
# calculator.run()
# calculator.save()
calculator = ClusterValidators(config_path='/Users/simon/Desktop/envs/NG_Unsupervised/project_folder/project_config.ini',
data_path='/Users/simon/Desktop/envs/NG_Unsupervised/project_folder/small_clusters',
validator_func=Statistics.calinski_harabasz)
calculator.run()
calculator.save()

0 comments on commit e6a23af

Please sign in to comment.