GithubHelp home page GithubHelp logo

Comments (5)

niedakh avatar niedakh commented on May 19, 2024 1

@ChristianSch thank you for the fix!

from scikit-multilearn.

ChristianSch avatar ChristianSch commented on May 19, 2024

Hey there,
the docs are wrong, you can load arff data sets like this:

from skmultilearn.dataset import load_dataset
d = load_dataset('enron', 'undivided')

d is a dictionary which (in the case of enron) gives you X, y or features and labels as keys:

X, y = d['X'], d['y']

Available data sets can be listed like this:

from skmultilearn.dataset import available_data_sets
available_data_sets()

For more information please see here.

from scikit-multilearn.

mattalhonte avatar mattalhonte commented on May 19, 2024

Not working here either, on Python 3.5 with Anaconda. First time, it failed with trying to load the Standard Library from future. Monkeypatched that import out with a comment.

Now I'm getting this:
from skmultilearn.dataset import available_data_sets
available_data_sets()

TypeError                                 Traceback (most recent call last)
<ipython-input-73-c3b496b1614f> in <module>()
      1 from skmultilearn.dataset import available_data_sets
----> 2 available_data_sets()

~/miniconda3/envs/py35/lib/python3.5/site-packages/skmultilearn/dataset.py in available_data_sets()
    106     archives = get_dataset_list()
    107     archives = [x.split(';')[-1].split('.')[0].split('-') for x in archives.split('\n')]
--> 108     variants = set()
    109     for a in archives:
    110         if a[0] not in variants:

TypeError: a bytes-like object is required, not 'str'

from scikit-multilearn.

ljvmiranda921 avatar ljvmiranda921 commented on May 19, 2024

I think this is the same bytes/string issue regarding the incompatibility between Python 2 and 3.
To the creators, I'm wondering if you are doing an integration test (like with travis-ci) to atleast check the compatibility.

from scikit-multilearn.

ChristianSch avatar ChristianSch commented on May 19, 2024

I can replicate this problem for a clean install of python 3.6, however not for python 2. I'll look into it.

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.