Comments (8)
It would be great to know a bit about the data you're working with. That exception is raised when the dimension is too large.
from spherecluster.
I experience the same problem when the dimension is relatively low. For example, the test test_integration_dense in test_von_mises_fisher_mixture.py raises this exception most of the time if I let n_features = 10 (and fixes params_in to {"posterior_type": "soft"}).
from spherecluster.
see my comment here #17
EDIT
It is actually straight forward to work in log scale using the exponentially-scaled modified Bessel functions:
from numpy import i0e # exp-scaled modified Bessel function of first kind order 0, I_0
from scipy.special import ive # exp-scaled modified Bessel function of first kind, I_v
from spherecluster.
Thanks @itamar-dw would you like to add a PR for this change?
from spherecluster.
sure.
I tried to create a new branch and push it, but I got:
remote: Permission to jasonlaska/spherecluster.git denied to itamar-dw
from spherecluster.
@itamar-dw I saw one branch come up but it was derived off of master. Could you try branching off develop
(pull the latest develop first or rebase), then tag me on the PR? I will merge it in after testing and reviewing.
You should be able to submit a PR for this project via the github UI by forking to your own account first https://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project
Let me know if you need help.
from spherecluster.
Alternatively, I'm happy to cherry-pick from a gist, if that's easier.
from spherecluster.
Yes I created a PR then I realized I have to create a branch first. I'll do it as you suggested, that's an opportunity to learn how to do it :)
from spherecluster.
Related Issues (20)
- black dependency breaks python3.5 install HOT 4
- AttributeError: 'SphericalKMeans' object has no attribute '_check_fit_data' HOT 4
- Source install fails due exceptions in setup.py
- Question about sample_vMF HOT 8
- Initialization is using euclidean distance HOT 3
- Using Spherical clustering for Mini-Batch K-Means HOT 1
- Spherical K-Means is producing different results each run even when fixing `random_state` at an integer HOT 1
- TypeError: Expected sequence or array-like, got <class 'NoneType'> HOT 5
- ImportError: cannot import name '_k_means' HOT 10
- Returned labels are floats in VonMissesFisherMixture (soft and hard)
- pip package not up to date? HOT 8
- TypeError: _labels_inertia() got an unexpected keyword argument 'precompute_distances' HOT 2
- Mistake in sample_vMF HOT 1
- Error in _sample_orthonormal_to
- Cannot import spherecluster with scikit-learn 1.0.2: sklearn.cluster.k_means_ has been renamed HOT 3
- Using it for dataframe
- ValueError: Data l2-norm must be 1, found 0.0
- This repo is dead
- return value of movMF function includes None when n_jobs!=1 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 spherecluster.