python - How do I use my dataset in Sklearn clustering? -
i trying adapt sklearn illustration here utilize own dataset, 1000 row, 4 column matrix of integers. cannot see how replace 1 of sklearn datasets mine. i.e. replace
noisy_circles = datasets.make_circles(n_samples=n_samples, factor=.5, noise=.05)
with?
the datasets.make_circles
function creates toy dataset clear pattern. info returns tuple containing x array of features (n x 2 dimensions) , y array of labels (length n).
to pass info clustering script, need set similar format , utilize in place of value returned make_circles
.
python scikit-learn
No comments:
Post a Comment