You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A minor error on page 258 and ch08.ipynb (Training a logistic regression model for document classification) when preparing train and test datasets
#139
It's worth noting that contrary to usual Python slices, .loc includes both the start and the stop points in the result (when they are present in the index). So, it ends up with having the sample #25000 in both train and test datasets.
The text was updated successfully, but these errors were encountered:
When we prepare the train and test datasets, we slice the IMDB dataset dataframe with the .loc method (slicing using the index).
It's worth noting that contrary to usual Python slices, .loc includes both the start and the stop points in the result (when they are present in the index). So, it ends up with having the sample #25000 in both train and test datasets.
The text was updated successfully, but these errors were encountered: