GithubHelp home page GithubHelp logo

Comments (4)

niedakh avatar niedakh commented on May 19, 2024 1

fully merged as tests in 477efdd, thank you again @ChristianSch !

from scikit-multilearn.

niedakh avatar niedakh commented on May 19, 2024

Hi,

i think you are correct, what we would also need is to come up with a way to pass the parameters up/down across the classifier tree, for example lets say we have an ensemble of random ordered classifier chains. EnsembleML(RandomizeLabels(CC(DecisionTreeClassifier))).

SVC takes some params, Randomize Labels might take a seed, EnsembleML will surely take the no of chains and the size of input space subset.

Do we pass the arguments in a namespaces approach flat array, ex. the get_params from SVC would yield:

tree_parms = {'class_weight': None,
 'criterion': 'gini',
 'max_depth': None,
 'max_features': None,
 'max_leaf_nodes': None,
 'min_samples_leaf': 1,
 'min_samples_split': 2,
 'min_weight_fraction_leaf': 0.0,
 'presort': False,
 'random_state': None,
 'splitter': 'best'}

What does CC return? Do we stack this, like:

{ "cc__baseclassifierparams" : self.classifier.get_params(),
"cc__classifier": DecisionTreeClassifier(),
"cc_require_dense": True}

or do we make it a flat list

{ "cc__classifier": DecisionTreeClassifier(),
"cc_require_dense": True,
"decisiontre...classifier_criterion": ...,
...
"decisiontre...classifier_splitter": ...
}

Which one would you prefer?

I want to cleanup the MLkNN code and convert it to sparse matrices internally and that will finish the 0.0.2 feature list, then I'll look into your code ok?

from scikit-multilearn.

ChristianSch avatar ChristianSch commented on May 19, 2024

I'd look into how scikit-learn does it and then comply to this. Not sure if they have this nested params, but I'll look into it.

from scikit-multilearn.

ChristianSch avatar ChristianSch commented on May 19, 2024

Ah, I know. It's flat because the way we iterate the attributes and append attr__foobar. So flat is the way to go imho.

from scikit-multilearn.

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.