You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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],
])
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.
The text was updated successfully, but these errors were encountered: