Skip to content

Use AI machine learning to predict next lottery results

Notifications You must be signed in to change notification settings

classicrocker883/LotteryAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

To generate lottery numbers using predictive AI machine learning. This uses historical data of past drawings adding weights to the most recent of drawings.

Install modules

pip install scikit-learn pandas numpy

-- OR --

python3 -m pip install scikit-learn pandas numpy

To use

I have uploaded data from two most popular lotteries:
Powerball >> 'powerball.csv'
Mega Millions >> 'megamillions.csv'

To change which file is used, in generate_numbers.py comment out the corresponding names:

#filename = 'powerball.csv'
filename = 'megamillions.csv'

# MegaMillions
max_white = 70
max_red = 25
# Powerball
#max_white = 69
#max_red = 26

Set how many rows of data you would like to use:

# Number of rows in data
set_rows = 200
  • Each iteration will be the same unless this value is changed.

About

Use AI machine learning to predict next lottery results

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages