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.loma...@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@python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
_______________________________________________
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn

Reply via email to