Mercurial > hg > chourdakisreiss2016
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:246d5546657c |
---|---|
1 # -*- coding: utf-8 -*- | |
2 """ | |
3 Created on Thu Jul 2 10:34:39 2015 | |
4 | |
5 @author: mmxgn | |
6 """ | |
7 | |
8 from sklearn.datasets import make_multilabel_classification | |
9 from sklearn.preprocessing import MultiLabelBinarizer | |
10 | |
11 X, Y = make_multilabel_classification(n_samples=5, random_state=0, return_indicator=False) | |
12 | |
13 c = MultiLabelBinarizer().fit_transform(Y) | |
14 |