1. biolab
  2. Untitled project
  3. orange-multitarget


orange-multitarget / _multitarget / __init__.py

Miran Levar c1791dc 

Miran Levar 50ed995 

Miran Levar c1791dc 

Jure Žbontar 7380b95 
Miran Levar c1791dc 
Miran Levar 3c0c4b6 
Miran Levar 6a9375f 

Miran Levar 14d5bd1 
Miran Levar 6c0af23 

The following example uses a simple multi-target data set (generated with
:download:`generate_multitarget.py <code/generate_multitarget.py>`) to show
some basic functionalities (part of
:download:`multitarget.py <code/multitarget.py>`).

.. literalinclude:: code/multitarget.py
    :lines: 1-6

Multi-target learners can build prediction models (classifiers)
which then predict (multiple) class values for a new instance (continuation of
:download:`multitarget.py <code/multitarget.py>`):

.. literalinclude:: code/multitarget.py
    :lines: 8-


from pkg_resources import resource_filename
def datasets():
    yield ('multitarget', resource_filename(__name__, 'datasets'))

import Orange
# Other algorithms which also work with multitarget data
#from Orange.regression import earth

# Multi-target algorithms
import tree
import chain
import binary
import neural
import scoring
import pls