Skip to content

Commit

Permalink
Merge pull request #455 from pawaspy/lottery
Browse files Browse the repository at this point in the history
Lottery Prediction
  • Loading branch information
abhisheks008 authored Dec 20, 2023
2 parents fa9dda1 + 814866d commit b9160a3
Show file tree
Hide file tree
Showing 8 changed files with 8,370 additions and 0 deletions.
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.

0 comments on commit b9160a3

Please sign in to comment.