Question: Using the following vectorizer: vectorizer = Tfidfvectorizer ( max _ features = 2 0 , stop _ words = 'english' ) , fit - transform
Using the following vectorizer:
vectorizer Tfidfvectorizermaxfeatures stopwords'english'
fittransform it to the comments column. Then use PCA with components and a randomstate of to determine the percentage of the variance that the first two principal components explain.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
