zalanborsos / coresets Goto Github PK
View Code? Open in Web Editor NEWCoresets
License: BSD 3-Clause "New" or "Revised" License
Coresets
License: BSD 3-Clause "New" or "Revised" License
I have scikit_learn installed, but the tests fail:
Traceback:
../../importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_mixtures.py:6: in <module>
from algorithms import WeightedGaussianMixture, WeightedBayesianGaussianMixture
algorithms/__init__.py:3: in <module>
from algorithms.weighted_kmeans import WeightedKMeans
algorithms/weighted_kmeans.py:2: in <module>
from sklearn.cluster.k_means_ import _init_centroids
E ModuleNotFoundError: No module named 'sklearn.cluster.k_means_'
__________________________________________ ERROR collecting tests/test_sensitivity.py __________________________________________
ImportError while importing test module '/home/icb/karin.hrovatin/miniconda3/envs/subsampling/lib/python3.8/site-packages/coresets/tests/test_sensitivity.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_sensitivity.py:7: in <module>
from coresets import *
coresets/__init__.py:4: in <module>
from coresets.k_means_coreset import KMeansLightweightCoreset, KMeansCoreset, KMeansUniformCoreset
coresets/k_means_coreset.py:1: in <module>
from sklearn.cluster.k_means_ import _init_centroids
E ModuleNotFoundError: No module named 'sklearn.cluster.k_means_'
________________________________________ ERROR collecting tests/test_weighted_kmeans.py ________________________________________
ImportError while importing test module '/home/icb/karin.hrovatin/miniconda3/envs/subsampling/lib/python3.8/site-packages/coresets/tests/test_weighted_kmeans.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_weighted_kmeans.py:5: in <module>
from algorithms import weighted_kmeans
algorithms/__init__.py:3: in <module>
from algorithms.weighted_kmeans import WeightedKMeans
algorithms/weighted_kmeans.py:2: in <module>
from sklearn.cluster.k_means_ import _init_centroids
E ModuleNotFoundError: No module named 'sklearn.cluster.k_means_'
=================================================== short test summary info ====================================================
ERROR tests/test_k_means_coresets.py
ERROR tests/test_mixtures.py
ERROR tests/test_sensitivity.py
ERROR tests/test_weighted_kmeans.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================== 4 errors in 1.35s =======================================================
(subsampling) [karin.hrovatin@icb-lisa coresets]$ pip freeze|grep scikit-learn
scikit-learn==0.24.1
The sensitivity implementation is in C++. Do you have some implementation with python?
Hello,
Could we push this package on pip so that it is accessible?
Also, do you plan to add other types of coresets like Bayesian Coresets and so on?
Cheers,
Fred
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.