/lotto

Korean lotto number prediction with language models

Primary LanguagePythonOtherNOASSERTION

Lottery Number Prediction with Language Models

GitHub Repo stars License: CC BY-NC 4.0 GitHub last commit GitHub pull request

Project Description

This project focuses on training a multi-label classification model and sequence to sequence model using South Korean lottery number data. This project's goal is to predict future lottery numbers based on historical draws. I utilize Python, PyTorch, and the Hugging Face Transformers library for this purpose.

Disclaimer: This project is intended purely for entertainment purposes. Lottery draws are independent events, and the outcomes of previous draws have no bearing on future ones. This project should not be taken as a serious attempt to predict lottery numbers. Users are advised to view this as a reference and not to rely on it for gambling decisions.

Additional Note: Decisions to purchase lottery tickets based on this project's output are solely the responsibility of the viewer. The creator of this project bears no responsibility for any gambling decisions made based on the information provided here.

-Done-

Predicted Lottery Numbers

Latest Prediction

  • 1111th predicted numbers
    • bert: 11, 12, 14, 18, 26, 45, bonus: 23
    • bart: 2, 6, 14, 15, 24, 27, bonus: 4
  • 1111th actual numbers:

Previous Predictions

1110th
  • 1110th predicted numbers
    • bert: 12, 18, 21, 33, 41, 45, bonus: 11
    • bart: 4, 12, 15, 24, 29, 34, bonus: 27
  • 1110th actual numbers: 3, 7, 11, 20, 22, 41, bonus: 24
1109th
  • 1109th predicted numbers
    • bert: 18, 23, 28, 29, 37, 43, bonus: 11
    • bart: 1, 3, 7, 11, 13, 22, bonus: 32
  • 1109th actual numbers: 10, 12, 13, 19, 33, 40, bonus: 2
1108th
  • 1108th predicted numbers
    • bert: 12, 18, 21, 22, 30, 45, bonus: 44
    • bart: 1, 3, 11, 14, 17, 28, bonus: 24
  • 1108th actual numbers: 7, 19, 26, 37, 39, 44, bonus: 27
1107th
  • 1107th predicted numbers
    • bert: 7, 11, 25, 28, 33, 43, bonus: 8
    • bart: 1, 2, 4, 11, 14, 32, bonus: 27
  • 1107th actual numbers: 6, 14, 30, 31, 40, 41, bonus: 29
1106th
  • 1106th predicted numbers
    • bert: 11, 18, 23, 28, 29, 43, bonus: 13
    • bart: 1, 3, 13, 18, 29, 35, bonus: 17
  • 1106th actual numbers: 1, 3, 4, 29, 42, 45, bonus: 36
1105th
  • 1105th predicted numbers
    • bert: 18, 26, 27, 29, 38, 43, bonus: 12
    • bart: 1, 2, 3, 8, 19, 25, bonus: 43
  • 1105th actual numbers: 6, 16, 34, 37, 39, 40, bonus: 11
1104th
  • 1104th predicted numbers
    • bert: 13, 18, 28, 29, 42, 43, bonus: 33
    • bart: 4, 7, 11, 13, 16, 32, bonus: 35
  • 1104th actual numbers: 1, 7, 21, 30, 35, 38, bonus: 2
1103rd
  • 1103rd predicted numbers
    • bert: 18, 22, 27, 29, 38, 44, bonus: 43
    • bart: 2, 11, 13, 17, 23, 35, bonus: 38
  • 1103rd actual numbers: 10, 12, 29, 31, 40, 44, bonus: 2
1102nd
  • 1102nd predicted numbers
    • bert: 5, 18, 21, 26, 27, 45, bonus: 24
    • bart: 2, 8, 12, 15, 25, 28, bonus: 17
  • 1102nd actual numbers: 13, 14, 22, 26, 37, 38, bonus: 20
1101st
  • 1101st predicted numbers
    • bert: 6, 18, 23, 27, 35, 45, bonus: 20
    • bart: 4, 7, 13, 18, 23, 31, bonus: 14
  • 1101st actual numbers: 6, 7, 13, 28, 36, 42, bonus: 41
1100th
  • 1100th predicted numbers
    • bert: 12, 16, 18, 19, 28, 43, bonus: 33
    • bart: 2, 4, 13, 17, 18, 24, bonus: 1
  • 1100th actual numbers: 17, 26, 29, 30, 31, 43, bonus: 12
1099th
  • 1099th predicted numbers
    • bert: 18, 19, 34, 36, 42, 43, bonus: 11
    • bart: 2, 7, 12, 17, 21, 44, bonus: 43
  • 1099th actual numbers: 3, 20, 28, 38, 40, 43, bonus: 4
1098th
  • 1098th predicted numbers
    • bert: 11, 12, 18, 20, 21, 45, bonus: 22
    • bart: 1, 2, 10, 14, 20, 43, bonus: 13
  • 1098th actual numbers: 12, 16, 21, 24, 41, 43, bonus: 15
1097th
  • 1097th predicted numbers
    • bert: 2, 7, 10, 19, 33, 36, bonus: 22
    • bart: 2, 4, 12, 14, 18, 26, bonus: 35
  • 1097th actual numbers: 14, 33, 34, 35, 37, 40, bonus: 4
1096th
  • 1096th predicted numbers
    • bert: 11, 19, 33, 36, 41, 45, bonus: 12
    • bart: 2, 4, 12, 14, 23, 34, bonus: 27
  • 1096th actual numbers: 1, 12, 16, 19, 23, 43, bonus: 34
1095th
  • 1095th predicted numbers
    • bert: 11, 12, 18, 19, 24, 45, bonus: 21
    • bart: 4, 8, 17, 18, 22, 24, bonus: 27
  • 1095th actual numbers: 8, 14, 28, 29, 34, 40, bonus: 12
1094th
  • 1094th predicted numbers
    • bert: 12, 18, 19, 33, 36, 42, bonus: 43
    • bart: 5, 12, 17, 18, 23, 26, bonus: 43
  • 1094th actual numbers: 6, 7, 15, 22, 26, 40, bonus: 41
1093rd
  • 1093rd predicted numbers
    • bert: 6, 18, 22, 24, 35, 44, bonus: 45
    • bart: 4, 12, 14, 18, 30, 44, bonus: 21
  • 1093rd actual numbers: 10, 17, 22, 30, 35, 43, 44

Model Checkpoints

Installation

Before using the project, you need to install the required libraries.

conda create -n lotto python=3.11.5
conda activate lotto

pip install -r requirements.txt

Usage

  1. Data Preparation: Prepare your lottery number data in the data/lotto_numbers.jsonl file.
    • using data/archive_lotto_numbers.py to crawl data from the official website.
  2. Training: Run python train_bert.py or train_bart.py to train the model.
  3. Evaluation: Execute python inference.py to assess the model's performance.

License

This project is licensed under the CC BY-NC 4.0 license.

Citation

If this work is helpful, please kindly cite as:

@Misc{lotto,
  title = {Lottery Number Prediction with Language Models},
  author = {l-yohai},
  howpublished = {\url{https://github.com/l-yohai/lotto}},
  year = {2023}
}

Star History

Star History Chart