Describe the bug
Hi, Thank you for the amazing package. I am trying to run Similarity Network Fusion Analysis from the example notebook https://ckg.readthedocs.io/en/latest/notebooks/reports/Meduloblastoma%20Data%20Analysis-SNF.html
When I run the following code
feature_df, fussed_aff, fused_labels, silhouette_score = analytics.run_snf(df_dict, index=['sample', 'group'], num_clusters=None, distance_metric='euclidean', k_affinity=5, mu_affinity=0.5)
I get an error TypeError: spectral_clustering() takes 1 positional argument but 2 were given
Expected behavior
I ran spectral clustering on an example array and it seems to work fine.
`import numpy as np
from sklearn.cluster import spectral_clustering
A = np.array([
[0, 1, 0, 0],
[1, 0, 1, 0],
[0, 1, 0, 1],
[0, 0, 1, 0],
])
labels = spectral_clustering(A, n_clusters=2)
print(labels)`
Desktop (please complete the following information):
- OS: Mac Darwin-21.6.0-x86_64-i386-64bit
Thank you for your help.
Describe the bug
Hi, Thank you for the amazing package. I am trying to run Similarity Network Fusion Analysis from the example notebook https://ckg.readthedocs.io/en/latest/notebooks/reports/Meduloblastoma%20Data%20Analysis-SNF.html
When I run the following code
feature_df, fussed_aff, fused_labels, silhouette_score = analytics.run_snf(df_dict, index=['sample', 'group'], num_clusters=None, distance_metric='euclidean', k_affinity=5, mu_affinity=0.5)I get an error TypeError: spectral_clustering() takes 1 positional argument but 2 were given
Expected behavior
I ran spectral clustering on an example array and it seems to work fine.
`import numpy as np
from sklearn.cluster import spectral_clustering
A = np.array([
[0, 1, 0, 0],
[1, 0, 1, 0],
[0, 1, 0, 1],
[0, 0, 1, 0],
])
labels = spectral_clustering(A, n_clusters=2)
print(labels)`
Desktop (please complete the following information):
Thank you for your help.