Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lottery Prediction #455

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,359 changes: 1,359 additions & 0 deletions Lottery Winner Prediction/Datasets/lotery.csv

Large diffs are not rendered by default.

Binary file added Lottery Winner Prediction/Images/corr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lottery Winner Prediction/Images/download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lottery Winner Prediction/Images/winner1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6,969 changes: 6,969 additions & 0 deletions Lottery Winner Prediction/Model/Lottery_Prediction.ipynb

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions Lottery Winner Prediction/Model/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Lottery Prediction Model

This repository contains the code for a lottery prediction model. The model is trained on a dataset downloaded from Kaggle and uses various machine learning algorithms such as RandomForestRegressor, LogisticRegression, Support Vector Regression (SVR), and TensorFlow.

## Dataset

The dataset used for training the model can be found on Kaggle. It has undergone exploratory data analysis (EDA) to understand its structure and characteristics.
`https://www.kaggle.com/datasets/muhammadzain010/lottery-ticket-prediction-based-on-history`

## Model Training

The model is trained using the following algorithms:

- RandomForestRegressor: This algorithm is used to build a regression model based on random decision trees.
- LogisticRegression: This algorithm is used for binary classification tasks.
- SVR: Support Vector Regression is used to build a regression model based on support vector machines.
- TensorFlow: TensorFlow is used to build and train a deep learning model for lottery prediction.

## Usage

To use the lottery prediction model, follow these steps:

1. Clone the repository to your local machine.
`git clone filepath`
2. Install the required dependencies mentioned in the `requirements.txt` file.
3. Run the appropriate script or notebook to train the model using the desired algorithm.
4. Once the model is trained, you can use it to make predictions on new lottery data.

## Conclusion

<br /> There were some `obj` columns which were converted to `int`.
<br /> For categorical feature the missing values were not large so can be replaced with most_frequent_ones or Median.
<br /> The project concluded with the use of the different models to predict the lottery.
9 changes: 9 additions & 0 deletions Lottery Winner Prediction/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The python latest version needs to install (above 3.9)

The library needs to install:-
1. numpy
2. pandas
3. matplotlib.pyplot
4. seaborn

The Jupiter notebook needs to install by using anaconda or vscode for a better view.