Coder Social home page Coder Social logo

Comments (3)

wenkph avatar wenkph commented on May 18, 2024

The example file was not working for me either. However, I was able to locate two problems:

One is related to the java implementation. The corresponding issue can be found in the waikato/meka repository: Waikato/meka#1
Upon fitting the classifier, the python wrapper calls the java commands providing no test data. Updating your java-meka to the nightly snapshot solved the problem for me.

Another problem arises when you try to do predictions. The parser in the python wrapper is unable to deal with samples for which no label has been predicted by meka (which meka frequently does).

A possible hackaround:
Change file meka.py

I've attached the version I am currently using to run the example correctly. Basically, you have to change the way the wrapper parses the meka output, the changes are commented.

However, I have not checked if this breaks other parts of the program. Especially the "verbosity==6" case is not most certainly broken (->see code)

meka.zip

from scikit-multilearn.

niedakh avatar niedakh commented on May 18, 2024

@brodin, @wenkph it is true, scikit-multilearn requires at least meka 1.9.1, I was talking to @jmread about this in the Maestra summer school in Macedonia last semptember, I think we need to wait a moment for their relaese, in the mean time I've updated the docs in eb478e5

@wenkph I've added support for the no-label assigned case and removed the nonworking verbosity=6 in f701d1f - thank you for your input and help!

from scikit-multilearn.

brodin avatar brodin commented on May 18, 2024

@niedakh Thanks! 👍

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.