Dear all,

I am working with text. My steps are:
1)CountVectorizer(receives a python list and returns a csc_matrix)
3) I want to concatenate this output with a matrix that contains other 
attributs relevants to the text.
2)SelectKBest(chi2)(receives ? and returns csr_matrix)

4) Classifier

My questions are:

Why SelectKBest returns a csr_matrix and is that efficient?
How I concatenate(or vstack) the output of ContVectorizer with my matrix(which 
is a numpy array of shame(n_instances, n_extraattributes)?

Thanks in advance!

Zoraida.-

________________________________

Este mensaje se dirige exclusivamente a su destinatario. Puede consultar 
nuestra política de envío y recepción de correo electrónico en el enlace 
situado más abajo.
This message is intended exclusively for its addressee. We only send and 
receive email on the basis of the terms set out at:
http://www.tid.es/ES/PAGINAS/disclaimer.aspx
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to