File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -409,20 +409,20 @@ Example of PCA on text dataset (20newsgroups) from tf-idf with 75000 features t
409409 X_test_new = pca.transform(X_test)
410410
411411 print (" train with old features: " ,np.array(X_train).shape)
412- print (" train with old features:" ,np.array(X_train_new).shape)
412+ print (" train with new features:" ,np.array(X_train_new).shape)
413413
414414 print (" test with old features: " ,np.array(X_test).shape)
415- print (" test with old features:" ,np.array(X_test_new).shape)
415+ print (" test with new features:" ,np.array(X_test_new).shape)
416416
417417 output:
418418
419419.. code :: python
420420
421421 tf- idf with 75000 features
422422 train with old features: (11314 , 75000 )
423- train with old features: (11314 , 2000 )
423+ train with new features: (11314 , 2000 )
424424 test with old features: (7532 , 75000 )
425- test with old features: (7532 , 2000 )
425+ test with new features: (7532 , 2000 )
426426
427427
428428
You can’t perform that action at this time.
0 commit comments