Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Implementing Supervised learning to build a model which can identify if a movie review is positive or negative?
Neural Narrator
Jun 20, 2024
30 views
Implementing Supervised learning to build a model which can identify if a movie review is positive or negative?
Our Procedure Overview:
here since we need to vectorize our training set perform we can train our model,
again when testing it as well computer cannot understand plain text, so we need to vectorize the testing set as well. Since this process is repeated multiple times, sklearn provides an alternative way through pipeline. For example
here we had to fit and then transform
we can also do it directly using fit_transform
So for to give more weight to more important words,
we then need to use term frequency inverse document frequency next
finally you import a model/classifier and then train it and test it
So Sklearn provide us a pipeline here. So all the steps above can be shortly and precisely written like this: