Giter Club home page Giter Club logo

Comments (8)

jasonlaska avatar jasonlaska commented on May 24, 2024

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.

ivarru avatar ivarru commented on May 24, 2024

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.

itamar-dw avatar itamar-dw commented on May 24, 2024

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.

jasonlaska avatar jasonlaska commented on May 24, 2024

Thanks @itamar-dw would you like to add a PR for this change?

from spherecluster.

itamar-dw avatar itamar-dw commented on May 24, 2024

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.

jasonlaska avatar jasonlaska commented on May 24, 2024

@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.

jasonlaska avatar jasonlaska commented on May 24, 2024

Alternatively, I'm happy to cherry-pick from a gist, if that's easier.

from spherecluster.

itamar-dw avatar itamar-dw commented on May 24, 2024

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)

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.