[scikit-learn] laoding multi-targets

Bruno Lustosa bruno.moura.pesquisa at gmail.com
Thu Oct 26 06:14:18 EDT 2017


Maybe u need use a np.loadtxt and to specify the columns.
Try use ‘usecol’ into this task

file1=np.loadtxt(path, usecol=(1,2))
file2=np.loadtxt(parh,usecol=(1,2))

I hope help u!



Att,
=========================
Prof. Bruno Lustosa de Moura
Instituto Federal do R. G. do Norte 
IFRN - Campus Natal Central
+55 84 99991-9550
=========================
"Dai me Senhor Deus aquilo
Que Vos resta..."



Em 26 de out de 2017, à(s) 06:34, Luigi Lomasto <l.lomasto at innovationengineering.eu> escreveu:

> Hi,
>  
> I’m writing to ask a question. Can I load a dataset multilabels with load_files function? For example, I have a dataset like this:
>  
> folder
>                folder1
>                               txt1
>                               txt2
>                folder2
>                               txt2
>                               txt3
>  
> So, item txt2 have two labels, folder1 and foder2. How I can load mutli-targets?
> Thanks for answer. Best regards,
>  
> Luigi
>  
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20171026/4eab3ab3/attachment.html>


More information about the scikit-learn mailing list