-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61b0fe9
commit da3faec
Showing
1 changed file
with
43 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Predicting Next Sequence Of Numbers Using LSTM | ||
|
||
The goal of this project is to predict Next Sequence of Numbers Using LSTM. | ||
|
||
The Dataset is Prepared on my own by the basis of taking an example of monthly data of airline passengers from January 1949, with the number of passengers recorded for each month. The dataset includes two columns: "Month" and "Passengers". | ||
|
||
--- | ||
|
||
**MODELS USED** | ||
|
||
- Long Short-Term Memory (LSTM) neural network. | ||
--- | ||
**LIBRARIES NEEDED** | ||
|
||
- numpy | ||
- pandas | ||
- Pytorch or torch | ||
--- | ||
**STEPS BEING FOLLOWED** | ||
|
||
- Load the dataset | ||
- Import libraries | ||
- Data analysis | ||
- Data Pre-Processing | ||
- Splitting data into test and train | ||
- Creating Data Loaders | ||
- Defining LSTM Model | ||
- Training the Model | ||
- Evaluating the Model | ||
- Predicting the Next Sequence | ||
|
||
--- | ||
|
||
**OUTPUT** | ||
|
||
By Long Short-Term Memory (LSTM) neural network | ||
``` | ||
Predicted Next Sequence: [0.3849259614944458, 0.3904801607131958, 0.39612001180648804, 0.3974493741989136, 0.39933568239212036, 0.3995046615600586, 0.3980133533477783, 0.394961953163147, 0.39221280813217163, 0.3911033272743225, 0.3923373222351074, 0.39604806900024414] | ||
``` | ||
|
||
**CONCLUSION** | ||
|
||
The LSTM model is trained to predict the next sequence of numbers based on the provided dataset. The model's performance is evaluated, and it can generate a sequence of numbers that follows the pattern learned from the training data. |