Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't reproduce the result of circle dataset with rcc #1

Open
yuxiaokang-source opened this issue Apr 21, 2021 · 0 comments
Open

Can't reproduce the result of circle dataset with rcc #1

yuxiaokang-source opened this issue Apr 21, 2021 · 0 comments

Comments

@yuxiaokang-source
Copy link

in the README.md,I see
image
I found I get many cluster(>300) with you code. How to adjust the result?
my test code is below

import matplotlib.pyplot as plt
import numpy as np
from sklearn.datasets import make_circles
from sklearn.preprocessing import StandardScaler
import pyrcc
from sklearn.metrics import adjusted_mutual_info_score
n_samples = 1500
noisy_circles =make_circles(n_samples=n_samples, factor=.5,noise=.05)

X = noisy_circles[0]
#X = StandardScaler().fit_transform(X)
Y = noisy_circles[1]

clusterer = pyrcc.RccCluster(measure='cosine')

P = clusterer.fit(X)
print('AMI: {}'.format(adjusted_mutual_info_score(Y, P)))
print(np.unique(P))

the result is below
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant