annotate experiment-reverb/code/playground.py @ 0:246d5546657c
initial commit, needs cleanup
author |
Emmanouil Theofanis Chourdakis <e.t.chourdakis@qmul.ac.uk> |
date |
Wed, 14 Dec 2016 13:15:48 +0000 |
parents |
|
children |
|
rev |
line source |
e@0
|
1 # -*- coding: utf-8 -*-
|
e@0
|
2 """
|
e@0
|
3 Created on Thu Jul 2 10:34:39 2015
|
e@0
|
4
|
e@0
|
5 @author: mmxgn
|
e@0
|
6 """
|
e@0
|
7
|
e@0
|
8 from sklearn.datasets import make_multilabel_classification
|
e@0
|
9 from sklearn.preprocessing import MultiLabelBinarizer
|
e@0
|
10
|
e@0
|
11 X, Y = make_multilabel_classification(n_samples=5, random_state=0, return_indicator=False)
|
e@0
|
12
|
e@0
|
13 c = MultiLabelBinarizer().fit_transform(Y)
|
e@0
|
14 |