The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

43859 (3) [Avatar] Offline
#1
This is really small. In chapter 4, in the code samples, there are some imports missing: pd (pandas), TruncatedSVD (from sklearn.decomposition ?), train_test_split (from sklearn.model_selection ?), LDA (not sure about this one, is it sklearn.lda ?).

Another small thing, in section 4.5.5 where you compare the topic vectors obtained from TruncatedSVD and PCA, you proceed to perform the cosine similarity for svd vectors. Is the cosine similarity for pca vectors missing, or did you intend it as an exercise for the reader?
hobs (58) [Avatar] Offline
#2
Thank you very much for helping us improve the examples. I think we've Incorporated your feedback into the latest version.