Comments (5)
from k-means-constrained.
scikit-learn version is 0.21.2 and
or tools version is 7.5.7466
The dummy code is as follows
X = df_size_7[['Latitude','Longitude']].head(5).values array([[14.6625047, 77.5828207], [14.6975793, 77.5834339], [14.6865696, 77.5916512], [14.6772115, 77.5933416], [14.6780301, 77.5935025]])
KMeansConstrained(n_clusters=5,size_min=2,size_max=1).fit(X)
AttributeError Traceback (most recent call last)
in
----> 1 KMeansConstrained(n_clusters=5,size_min=2,size_max=1).fit(X)
~\AppData\Local\Continuum\anaconda3.1\lib\site-packages\k_means_constrained-0.2.0-py3.7-win-amd64.egg\k_means_constrained\k_means_constrained_.py in fit(self, X, y)
621 """
622 random_state = check_random_state(self.random_state)
--> 623 X = self.check_fit_data(X)
624
625 self.cluster_centers, self.labels_, self.inertia_, self.n_iter_ = \
AttributeError: 'KMeansConstrained' object has no attribute '_check_fit_data'
from k-means-constrained.
@adinarayanaPalvadi The problem should now be fixed with the latest version (v0.3.1). The easiest way to install is using PyPI:
pip install k-means-constrained
from k-means-constrained.
Let me know if you have any problems
from k-means-constrained.
Closing as no reply. Please comment again if you require further help.
from k-means-constrained.
Related Issues (20)
- Feature value constrained in a spatial aplication HOT 3
- [BUG] Won't install HOT 1
- [BUG] Incompatible with `ortools >= 9.4` (`No module named 'ortools.graph.pywrapgraph'`) HOT 9
- [BUG] installation issues with numpy < 1.23 HOT 3
- facing the issue during running HOT 2
- [BUG] Failed to build k-means-constrained HOT 3
- Wrong clustering HOT 1
- Wrong clustering with pre_computed adjacency matrix HOT 3
- QGIS implementation HOT 1
- ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject HOT 2
- [How to classify the new instances after obtaining a constrained clustering] HOT 1
- [BUG] error compiling on apple silicon. HOT 2
- Maybe tag a new release? HOT 1
- Issue in importing k-means-constrained in Google Colab notebook HOT 2
- Possibility to use this on k-modes HOT 2
- Can't install k-means-constrained HOT 2
- Resource intensity HOT 2
- Weighting observations HOT 1
- import k_means_constrained HOT 4
- Issue with min cost flow input HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k-means-constrained.