Giter Club home page Giter Club logo

Comments (3)

sylvaticus avatar sylvaticus commented on May 25, 2024

Thank you. I have read your message, I'll have a look later this evening or tomorrow.

from betaml.jl.

sylvaticus avatar sylvaticus commented on May 25, 2024

Hello, thank you for reporting.
A bug slipped in the code evading the unit tests during the reorganisation of the package. It should now be ok in the v0.9 that I am going to release in minutes, so please update your packages to use BetaML 0.9.

Note that in the MLJ interface the name of the model is now GaussianMixtureClusterer and the number of classes parameter is n_classes.

Sorry for the confusion, but it was important to reorganise the package API. It should be much more stable now. You can read all the model names here.

Here you have the specific model hyperparameters:

  • here and here for the BetaML GMMClusterer model
  • here for GaussianMixtureClusterer (MLJ interface)

An example of usage would then be the following:

import MLJBase
const Mlj = MLJBase
using BetaML

X, y                        = Mlj.@load_iris
model                       = GaussianMixtureClusterer(mixtures=FullGaussian,n_classes=3)
modelMachine                = Mlj.machine(model, X) # DimensionMismatch
(fitResults, cache, report) = Mlj.fit(model, 0, X)
yhat                        = convert(Vector{Int64},Mlj.predict_mode(model, fitResults, X))
ytrue                       = fit!(OrdinalEncoder(),y)
accuracy(ytrue,yhat,ignorelabels=true) # 0.987

Let me know if using BetaML v0.9 is it now working on your side !

from betaml.jl.

juliohm avatar juliohm commented on May 25, 2024

Thank you @sylvaticus , problem solved 👍🏽

from betaml.jl.

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.