Code Monkey home page Code Monkey logo

automeans's People

Contributors

anshulp2912 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

automeans's Issues

When I try to run the example provided in the library, it gives me the following error.

import numpy as np
X = np.array([[1, 2], [2, 5], [3, 6], [8, 7], [8, 8], [7, 3]])

Initialize the model

model_ameans = ameans(max_clusters = 5, metrics = 'silhouette')

Fit on data 'X'

model_ameans.fit(X)

Predict the cluster on data 'X'

#predictions = model.predict(X)

TypeError: init() got an unexpected keyword argument 'precompute_distances'

TypeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_3964\609850703.py in
6
7 # Fit on data 'X'
----> 8 model_ameans.fit(X)
9 # Predict the cluster on data 'X'
10 #predictions = model.predict(X)

~.conda\envs\send_freq\lib\site-packages\automeans\cluster.py in fit(self, X)
207 tol=self.tol, precompute_distances=self.precompute_distances,
208 verbose=self.verbose, random_state=self.random_state,
--> 209 copy_x=self.copy_x, n_jobs=self.n_jobs, algorithm=self.algorithm)
210 labels = kmeans.fit_predict(X)
211 sil_score = silhouette_score(X, labels)

TypeError: init() got an unexpected keyword argument 'precompute_distances'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.