The tutorial demonstrates the implementation of a two-layer neural network for text classification using natural language processing (NLP) techniques. The model is designed to determine the sentiment of movie reviews, categorizing them as positive or negative.
The dataset used consists of 36,591 review-rating pairs from Kinopoisk. For the training process, the author selected 10,000 positive and 10,000 negative reviews, though the actual training was performed on 14,751 samples due to a data imbalance.
The neural network architecture features 100 neurons in the hidden layer and one in the output layer. The input data is processed using one-hot encoding, which is subsequently optimized through an embedding layer approach during the forward pass.
The model achieved 94% accuracy on the test set, which consisted of 1,000 samples. The implementation utilizes stochastic gradient descent and binary cross-entropy for error calculation.






