I am looking at this example
https://www.analyticsvidhya.com/blog/2019/04/predicting-movie-genres-nlp-multi-label-classification/
exactly at the line where using TF-IDF
# create TF-IDF features
xtrain_tfidf = tfidf_vectorizer.fit_transform(xtrain)
xval_tfidf = tfidf_vectorizer.transform(xval)
When i try to view the results of xtrain_tfidf I get this message
xtrain_tfidf
Out[69]:
<33434x10000 sparse matrix of type '<class 'numpy.float64'>'
with 3494870 stored elements in Compressed Sparse Row format>
I would like to see what does xtrain_tfidf have?
how can I view it?