Coder Social home page Coder Social logo

Comments (2)

flennerhag avatar flennerhag commented on May 14, 2024

Currently, ml-ensemble only handles numerical class labels. In this case, the class label corresponds to the column index, so there shouldn't be any need to access a classes_ attribute. For instance, an ensemble of two estimators with 2 class labels would have the following column structure:

col=0 col=1 col=2 col=3
est=0 est=0 est=1 est=1
label=0 label=1 label=0 label=1

If you really want to access the classes_ attribute of an estimator, you can with

sl.layer_1.learners[0]._learner_[0].estimator.classes_

Adjust for the layer and estimator you want to look at. Note that the backend structure may change so this way of access the classes_ attribute can break without warning.

from mlens.

philrhinehart avatar philrhinehart commented on May 14, 2024

Ok, thanks! I had a feeling this was the case but wasn't sure if it was a guarantee.

from mlens.

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.