Skip to content

Commit

Permalink
Update to scikit learn 1.0.1 and change the TSNE squared distances de…
Browse files Browse the repository at this point in the history
…fault.
  • Loading branch information
matthew-gaddes committed Sep 20, 2022
1 parent f319896 commit 3e4ac7b
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ICASAR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
- numpy
- spyder=4
- matplotlib=3.0.1
- scikit-learn=0.20.0
- scikit-learn=1.0.1
- hdbscan=0.8.18
- simplekml
- h5py
Binary file modified example_spatial_01_outputs/01_pca_variance_line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example_spatial_01_outputs/02_PCA_sources_correlations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example_spatial_01_outputs/02_PCA_sources_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example_spatial_01_outputs/03_ICA_sources_correlations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example_spatial_01_outputs/03_ICA_sources_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example_spatial_01_outputs/ICASAR_results.pkl
Binary file not shown.
Binary file modified example_spatial_01_outputs/ICs.kmz
Binary file not shown.
2 changes: 1 addition & 1 deletion icasar/icasar_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ def bootstrapped_sources_to_centrotypes(sources_r2, hdbscan_param, tsne_param):
# 3: 2d manifold with all the recovered sources
print('Starting to calculate the 2D manifold representation....', end = "")
manifold_tsne = TSNE(n_components = 2, metric = 'precomputed', perplexity = perplexity, early_exaggeration = early_exaggeration,
init = 'random', learning_rate = 200.0, square_distances='legacy') # default will change to pca in 1.2. May be worth experimenting with.
init = 'random', learning_rate = 200.0, square_distances=True) # default will change to pca in 1.2. May be worth experimenting with.
xy_tsne = manifold_tsne.fit(D).embedding_
print('Done!' )

Expand Down

0 comments on commit 3e4ac7b

Please sign in to comment.