Git Product home page Git Product logo

Comments (9)

AlexanderFabisch avatar AlexanderFabisch commented on June 7, 2024 1

I did not fully understand it yet. Maybe it's numerical problem (for example, exp(small value) -> 0 or exp(large value) -> infinity). If you are interested and want to help you can take a look. I would be happy about any support.

from gmr.

AlexanderFabisch avatar AlexanderFabisch commented on June 7, 2024 1

No problem. I would appreciate any feedback before I merge it.

from gmr.

AlexanderFabisch avatar AlexanderFabisch commented on June 7, 2024

Hi,

this is an issue that seems to be a bit difficult to fix on the algorithm's side. I would recommend to use sklearn.preprocessing.StandardScaler on your data if this is an issue.

from gmr.

Labulitiolle avatar Labulitiolle commented on June 7, 2024

All right, by curiosity what is causing this issue?

from gmr.

AlexanderFabisch avatar AlexanderFabisch commented on June 7, 2024

OK, most likely the covariances have to be initialized differently. Means are already initialized to data points but the covariances are always identity matrices. Their variance should be set to something like (average distance / number of Gaussians) ** 2. I don't know if that will fix it though.

from gmr.

Labulitiolle avatar Labulitiolle commented on June 7, 2024

Great, I'll try to have a deeper look at it next weekend.
It also seems like the Gaussians do not fit the data the same way as GMM goes it in the sklearn package.

from gmr.

AlexanderFabisch avatar AlexanderFabisch commented on June 7, 2024

@Labulitiolle Did you have a chance to look into the issue? Meanwhile I also tried some things. See #10

from gmr.

Labulitiolle avatar Labulitiolle commented on June 7, 2024

Hi @AlexanderFabisch ,
I am really sorry, it's been a bit of a rush lately. Your commit seems to bring great improvement.
It is still on my todo list to go through the code. I can't give you a fixed date though...

from gmr.

AlexanderFabisch avatar AlexanderFabisch commented on June 7, 2024

Thanks. I merged it just a few seconds ago.

from gmr.

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.