Giter Site home page Giter Site logo

Multilabel prediction about sklearn-porter HOT 3 OPEN

nok avatar nok commented on May 31, 2024
Multilabel prediction

from sklearn-porter.

Comments (3)

skjerns avatar skjerns commented on May 31, 2024 1

Ah, I mixed up multiclass and multilabel.

I do assume that this is not implemented yet, it also doesn't work when porting to other languages.

You might be able to work-around with splitting each label up into it's own binary classification RFC. However, this will only work satisfactory if the labels are assumed to be independent (which is most likely not the case).

from sklearn-porter.

skjerns avatar skjerns commented on May 31, 2024

The JS example itself is using multilabel with 3 different labels. So I assume that this should work.

What are the labels you are using? There are known problems when using labels that are non-sequential ints, e.g. labels [0,1,3] instead of [0,1,2] (#37)

from sklearn-porter.

DerMajeed avatar DerMajeed commented on May 31, 2024

First of all, thanks for your response! I am using binary labels, so as a prediction I should get a list of true/false for each label.

For example:

[0,1,1,0,0,0,0,1,0]	

This prediction i mapping back to the string labels.

PS: I don't know, if you understood my problem right. I don't want to predict one label out of multiple possible label (like in the iris dataset example you provided). I want to predict multiple labels out of all of possible labels.

from sklearn-porter.

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.