Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Forgot to publish the readme
- Loading branch information
Boyan-Yordanov
committed
Mar 11, 2023
1 parent
d14d10e
commit 70f3d756556b51eb5888e14e8d7cd69d53a3180d
Showing
1 changed file
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,34 @@ | ||
# Sentiment Analysis using Artificial Neural Networks | ||
# Sentiment Analysis using Artificial Neural Networks | ||
|
||
This is the code for my Artificial Neural Networks module in Coventry University.It was build using Keras and TensorFlow to perform Sentiment Analysis, and it was trained on the IMDb dataset. | ||
|
||
## Dataset | ||
|
||
The IMDb dataset consists of 50,000 movie reviews from the Internet Movie Database. The dataset is split into 25,000 reviews for training and 25,000 reviews for testing. Each review is labeled as either positive or negative based on its overall sentiment. | ||
|
||
## Neural Network Architecture | ||
|
||
The neural network model is built with Keras, a high-level deep learning library. The architecture of the model consists of an onput layer, followed by 2 hidden layers, both of which contain a dropout layer and finally the model has an output layer. The final output layer uses a sigmoid activation function to produce a probability value between 0 and 1, representing the sentiment of the input review. | ||
|
||
## Training and Evaluation | ||
|
||
The model is trained on the training set using the Adam optimizer and binary cross-entropy loss function. The performance of the model is evaluated on the testing set, using accuracy and loss as evaluation metrics. | ||
|
||
## Requirements | ||
|
||
> Python 3.6 or later | ||
> TensorFlow 2.0 or later | ||
> Keras 2.0 or later | ||
## Usage | ||
|
||
To train the model, run the the following Jupyter notbook: | ||
`imdb.ipynb` | ||
|
||
## Results | ||
|
||
The trained model achieved an accuracy of 89.3% on the testing set, demonstrating the effectiveness of the neural network for sentiment analysis on the IMDb dataset. | ||
|
||
## License | ||
|
||
This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE.md file for details. |