Add Deep Learning (LSTM) + Quick Wins automation features

Major improvements:
- Deep Learning integration with PyTorch LSTM (Bidirectional, 128→64 units)
- Hybrid predictor: 40% RandomForest + 60% Deep Learning
- LaunchAgent for automatic weekly tip generation (Tue/Fri 21:00)
- Health-Check system with auto-recovery and Telegram alerts
- Model caching and intelligent retraining logic
- Updated CSV data and generated tips
- Performance reports for recent draws

Technical details:
- PyTorch used instead of TensorFlow (Python 3.14 compatibility)
- Apple Silicon MPS acceleration support
- Sequence learning with 20-draw history
- Early stopping and learning rate scheduling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
cbazzaandClaude Sonnet 4.5 committed 2026-01-07 09:20:49 +01:00
1 parent f6106b8333
commit 428403557e
33 files changed
+31776 -62

No files matched your search

@@ -62,6 +62,62 @@
"file": "weekly_lotto_tips_20251216_090036.csv",
"avg_confidence": 0.2526153083488077,
"avg_quality": 0.4270460107501856
},
{
"timestamp": "2025-12-19T09:00:47.995332",
"num_tips": 10,
"file": "weekly_lotto_tips_20251219_090047.csv",
"avg_confidence": 0.24851173163378942,
"avg_quality": 0.42254649408361306
},
{
"timestamp": "2025-12-23T09:00:39.273434",
"num_tips": 10,
"file": "weekly_lotto_tips_20251223_090039.csv",
"avg_confidence": 0.24564556363017442,
"avg_quality": 0.42297042510202276
},
{
"timestamp": "2025-12-26T09:00:29.472712",
"num_tips": 10,
"file": "weekly_lotto_tips_20251226_090029.csv",
"avg_confidence": 0.24881269580518275,
"avg_quality": 0.4232548718131768
},
{
"timestamp": "2025-12-30T09:00:29.644794",
"num_tips": 10,
"file": "weekly_lotto_tips_20251230_090029.csv",
"avg_confidence": 0.2493553812828854,
"avg_quality": 0.422702688633027
},
{
"timestamp": "2026-01-05T11:57:12.284547",
"num_tips": 10,
"file": "weekly_lotto_tips_20260105_115712.csv",
"avg_confidence": 0.2534916290186907,
"avg_quality": 0.4275052872775139
},
{
"timestamp": "2026-01-05T14:18:43.847636",
"num_tips": 5,
"file": "weekly_lotto_tips_20260105_141843.csv",
"avg_confidence": 0.22396252964735192,
"avg_quality": 0.4176696066987704
},
{
"timestamp": "2026-01-05T14:26:54.619984",
"num_tips": 5,
"file": "weekly_lotto_tips_20260105_142654.csv",
"avg_confidence": 0.38086368558448874,
"avg_quality": 0.5874078043214264
},
{
"timestamp": "2026-01-05T19:31:53.727772",
"num_tips": 10,
"file": "weekly_lotto_tips_20260105_193153.csv",
"avg_confidence": 0.4169894391741245,
"avg_quality": 0.6052850635944613
}
]
}
@@ -0,0 +1,11 @@
Tip_Number,Numbers,Superzahl,Strategy,AI_Score,Pattern_Weight,Confidence,Quality
1,12-14-17-45-46-48,9,HYBRID-OPT,0.2117,0.0976,0.3294,0.4224
2,1-12-23-32-45-46,9,HYBRID-OPT,0.2040,0.1473,0.3434,0.4340
3,3-8-14-17-21-46,9,HYBRID-OPT,0.2185,0.0870,0.3287,0.4242
4,7-8-28-45-46-48,8,HYBRID-OPT,0.2617,0.0976,0.3519,0.4478
5,6-8-14-21-28-46,7,HYBRID-OPT,0.2717,0.0870,0.3527,0.4473
6,5-8-9-12-16-46,5,PURE-AI,0.1900,0.0046,0.1529,0.3874
7,2-3-7-25-32-46,7,PURE-AI,0.1141,0.0870,0.1087,0.3761
8,8-13-21-28-44-46,6,ENSEMBLE,0.2620,0.1473,0.2047,0.4621
9,8-12-13-21-28-46,3,ENSEMBLE,0.2900,0.0870,0.1885,0.4519
10,2-9-24-30-35-49,9,PURE-PATTERN,0.0700,0.1473,0.1241,0.3722
1 Tip_Number Numbers Superzahl Strategy AI_Score Pattern_Weight Confidence Quality
2 1 12-14-17-45-46-48 9 HYBRID-OPT 0.2117 0.0976 0.3294 0.4224
3 2 1-12-23-32-45-46 9 HYBRID-OPT 0.2040 0.1473 0.3434 0.4340
4 3 3-8-14-17-21-46 9 HYBRID-OPT 0.2185 0.0870 0.3287 0.4242
5 4 7-8-28-45-46-48 8 HYBRID-OPT 0.2617 0.0976 0.3519 0.4478
6 5 6-8-14-21-28-46 7 HYBRID-OPT 0.2717 0.0870 0.3527 0.4473
7 6 5-8-9-12-16-46 5 PURE-AI 0.1900 0.0046 0.1529 0.3874
8 7 2-3-7-25-32-46 7 PURE-AI 0.1141 0.0870 0.1087 0.3761
9 8 8-13-21-28-44-46 6 ENSEMBLE 0.2620 0.1473 0.2047 0.4621
10 9 8-12-13-21-28-46 3 ENSEMBLE 0.2900 0.0870 0.1885 0.4519
11 10 2-9-24-30-35-49 9 PURE-PATTERN 0.0700 0.1473 0.1241 0.3722
@@ -0,0 +1,11 @@
Tip_Number,Numbers,Superzahl,Strategy,AI_Score,Pattern_Weight,Confidence,Quality
1,8-21-23-29-33-46,0,HYBRID-OPT,0.1950,0.0909,0.3196,0.4164
2,2-8-14-28-32-45,0,HYBRID-OPT,0.2299,0.0869,0.3339,0.4325
3,12-15-21-28-42-46,0,HYBRID-OPT,0.1900,0.1473,0.3370,0.4310
4,4-8-28-45-46-48,8,HYBRID-OPT,0.2402,0.0976,0.3423,0.4409
5,6-8-14-21-28-46,5,HYBRID-OPT,0.2620,0.0869,0.3483,0.4448
6,1-6-8-23-28-40,7,PURE-AI,0.1775,0.0869,0.1594,0.4091
7,3-12-19-21-46-48,7,PURE-AI,0.1280,0.1473,0.1319,0.4016
8,8-12-13-21-28-46,6,ENSEMBLE,0.2898,0.0869,0.1883,0.4517
9,8-12-13-21-28-46,3,ENSEMBLE,0.2898,0.0869,0.1883,0.4517
10,2-9-24-30-35-49,0,PURE-PATTERN,0.0145,0.1473,0.1074,0.3500
1 Tip_Number Numbers Superzahl Strategy AI_Score Pattern_Weight Confidence Quality
2 1 8-21-23-29-33-46 0 HYBRID-OPT 0.1950 0.0909 0.3196 0.4164
3 2 2-8-14-28-32-45 0 HYBRID-OPT 0.2299 0.0869 0.3339 0.4325
4 3 12-15-21-28-42-46 0 HYBRID-OPT 0.1900 0.1473 0.3370 0.4310
5 4 4-8-28-45-46-48 8 HYBRID-OPT 0.2402 0.0976 0.3423 0.4409
6 5 6-8-14-21-28-46 5 HYBRID-OPT 0.2620 0.0869 0.3483 0.4448
7 6 1-6-8-23-28-40 7 PURE-AI 0.1775 0.0869 0.1594 0.4091
8 7 3-12-19-21-46-48 7 PURE-AI 0.1280 0.1473 0.1319 0.4016
9 8 8-12-13-21-28-46 6 ENSEMBLE 0.2898 0.0869 0.1883 0.4517
10 9 8-12-13-21-28-46 3 ENSEMBLE 0.2898 0.0869 0.1883 0.4517
11 10 2-9-24-30-35-49 0 PURE-PATTERN 0.0145 0.1473 0.1074 0.3500
@@ -0,0 +1,11 @@
Tip_Number,Numbers,Superzahl,Strategy,AI_Score,Pattern_Weight,Confidence,Quality
1,1-12-21-28-39-46,0,HYBRID-OPT,0.2145,0.1475,0.3481,0.4397
2,2-8-14-28-32-45,0,HYBRID-OPT,0.2556,0.0869,0.3454,0.4409
3,3-12-23-28-33-45,0,HYBRID-OPT,0.2199,0.1475,0.3506,0.4416
4,1-2-21-28-42-46,5,HYBRID-OPT,0.1943,0.1475,0.3390,0.4314
5,6-8-14-21-28-46,1,HYBRID-OPT,0.2743,0.0869,0.3538,0.4479
6,1-5-8-12-33-46,7,PURE-AI,0.1998,0.0179,0.1634,0.3950
7,3-17-25-37-39-46,7,PURE-AI,0.1299,0.0861,0.1212,0.3824
8,8-12-13-21-28-37,6,ENSEMBLE,0.2498,0.0869,0.1683,0.4369
9,8-12-13-21-28-37,3,ENSEMBLE,0.2498,0.0869,0.1683,0.4369
10,2-9-24-30-35-49,0,PURE-PATTERN,0.0890,0.1475,0.1299,0.3798
1 Tip_Number Numbers Superzahl Strategy AI_Score Pattern_Weight Confidence Quality
2 1 1-12-21-28-39-46 0 HYBRID-OPT 0.2145 0.1475 0.3481 0.4397
3 2 2-8-14-28-32-45 0 HYBRID-OPT 0.2556 0.0869 0.3454 0.4409
4 3 3-12-23-28-33-45 0 HYBRID-OPT 0.2199 0.1475 0.3506 0.4416
5 4 1-2-21-28-42-46 5 HYBRID-OPT 0.1943 0.1475 0.3390 0.4314
6 5 6-8-14-21-28-46 1 HYBRID-OPT 0.2743 0.0869 0.3538 0.4479
7 6 1-5-8-12-33-46 7 PURE-AI 0.1998 0.0179 0.1634 0.3950
8 7 3-17-25-37-39-46 7 PURE-AI 0.1299 0.0861 0.1212 0.3824
9 8 8-12-13-21-28-37 6 ENSEMBLE 0.2498 0.0869 0.1683 0.4369
10 9 8-12-13-21-28-37 3 ENSEMBLE 0.2498 0.0869 0.1683 0.4369
11 10 2-9-24-30-35-49 0 PURE-PATTERN 0.0890 0.1475 0.1299 0.3798
@@ -0,0 +1,11 @@
Tip_Number,Numbers,Superzahl,Strategy,AI_Score,Pattern_Weight,Confidence,Quality
1,1-12-21-28-38-46,6,HYBRID-OPT,0.2045,0.1476,0.3437,0.4363
2,2-8-21-23-40-45,6,HYBRID-OPT,0.2043,0.1476,0.3436,0.4358
3,8-12-23-25-33-45,6,HYBRID-OPT,0.2097,0.1476,0.3461,0.4382
4,8-28-39-45-46-48,5,HYBRID-OPT,0.2574,0.0392,0.3296,0.4289
5,4-8-21-32-38-45,1,HYBRID-OPT,0.1751,0.1476,0.3305,0.4234
6,1-8-13-28-33-38,7,PURE-AI,0.1995,0.0760,0.1748,0.4145
7,7-10-11-37-46-48,7,PURE-AI,0.1077,0.0312,0.0924,0.3567
8,8-13-21-28-37-46,6,ENSEMBLE,0.2645,0.1476,0.2061,0.4627
9,8-13-21-28-37-46,3,ENSEMBLE,0.2645,0.1476,0.2061,0.4627
10,2-9-24-30-35-49,6,PURE-PATTERN,0.0585,0.1476,0.1209,0.3677
1 Tip_Number Numbers Superzahl Strategy AI_Score Pattern_Weight Confidence Quality
2 1 1-12-21-28-38-46 6 HYBRID-OPT 0.2045 0.1476 0.3437 0.4363
3 2 2-8-21-23-40-45 6 HYBRID-OPT 0.2043 0.1476 0.3436 0.4358
4 3 8-12-23-25-33-45 6 HYBRID-OPT 0.2097 0.1476 0.3461 0.4382
5 4 8-28-39-45-46-48 5 HYBRID-OPT 0.2574 0.0392 0.3296 0.4289
6 5 4-8-21-32-38-45 1 HYBRID-OPT 0.1751 0.1476 0.3305 0.4234
7 6 1-8-13-28-33-38 7 PURE-AI 0.1995 0.0760 0.1748 0.4145
8 7 7-10-11-37-46-48 7 PURE-AI 0.1077 0.0312 0.0924 0.3567
9 8 8-13-21-28-37-46 6 ENSEMBLE 0.2645 0.1476 0.2061 0.4627
10 9 8-13-21-28-37-46 3 ENSEMBLE 0.2645 0.1476 0.2061 0.4627
11 10 2-9-24-30-35-49 6 PURE-PATTERN 0.0585 0.1476 0.1209 0.3677
@@ -0,0 +1,11 @@
Tip_Number,Numbers,Superzahl,Strategy,AI_Score,Pattern_Weight,Confidence,Quality
1,8-13-27-28-33-37,8,HYBRID-OPT,0.2045,0.1476,0.3437,0.4379
2,2-8-14-28-32-45,8,HYBRID-OPT,0.2483,0.0869,0.3421,0.4385
3,3-8-14-17-21-46,8,HYBRID-OPT,0.2177,0.0869,0.3284,0.4239
4,1-11-25-28-45-46,0,HYBRID-OPT,0.2043,0.1476,0.3436,0.4372
5,6-8-14-21-28-46,1,HYBRID-OPT,0.2709,0.0869,0.3523,0.4471
6,8-10-13-25-28-40,2,PURE-AI,0.2045,0.0869,0.1810,0.4197
7,7-9-11-32-38-46,7,PURE-AI,0.1140,0.0762,0.1064,0.3729
8,8-13-21-28-37-46,6,ENSEMBLE,0.2662,0.1476,0.2069,0.4632
9,8-13-21-28-37-46,3,ENSEMBLE,0.2662,0.1476,0.2069,0.4632
10,2-9-24-30-35-49,8,PURE-PATTERN,0.0680,0.1476,0.1237,0.3715
1 Tip_Number Numbers Superzahl Strategy AI_Score Pattern_Weight Confidence Quality
2 1 8-13-27-28-33-37 8 HYBRID-OPT 0.2045 0.1476 0.3437 0.4379
3 2 2-8-14-28-32-45 8 HYBRID-OPT 0.2483 0.0869 0.3421 0.4385
4 3 3-8-14-17-21-46 8 HYBRID-OPT 0.2177 0.0869 0.3284 0.4239
5 4 1-11-25-28-45-46 0 HYBRID-OPT 0.2043 0.1476 0.3436 0.4372
6 5 6-8-14-21-28-46 1 HYBRID-OPT 0.2709 0.0869 0.3523 0.4471
7 6 8-10-13-25-28-40 2 PURE-AI 0.2045 0.0869 0.1810 0.4197
8 7 7-9-11-32-38-46 7 PURE-AI 0.1140 0.0762 0.1064 0.3729
9 8 8-13-21-28-37-46 6 ENSEMBLE 0.2662 0.1476 0.2069 0.4632
10 9 8-13-21-28-37-46 3 ENSEMBLE 0.2662 0.1476 0.2069 0.4632
11 10 2-9-24-30-35-49 8 PURE-PATTERN 0.0680 0.1476 0.1237 0.3715
@@ -0,0 +1,6 @@
Tip_Number,Numbers,Superzahl,Strategy,AI_Score,Pattern_Weight,Confidence,Quality
1,8-13-27-28-33-37,8,HYBRID-OPT,0.2045,0.1476,0.3437,0.4379
2,2-8-14-28-32-45,8,HYBRID-OPT,0.2483,0.0869,0.3421,0.4385
3,3-12-14-37-39-45,8,PURE-AI,0.1644,0.0312,0.1377,0.3816
4,8-13-21-28-37-46,0,ENSEMBLE,0.2662,0.1476,0.2069,0.4632
5,3-22-23-36-39-43,1,PURE-PATTERN,0.0972,0.0860,0.0894,0.3672
1 Tip_Number Numbers Superzahl Strategy AI_Score Pattern_Weight Confidence Quality
2 1 8-13-27-28-33-37 8 HYBRID-OPT 0.2045 0.1476 0.3437 0.4379
3 2 2-8-14-28-32-45 8 HYBRID-OPT 0.2483 0.0869 0.3421 0.4385
4 3 3-12-14-37-39-45 8 PURE-AI 0.1644 0.0312 0.1377 0.3816
5 4 8-13-21-28-37-46 0 ENSEMBLE 0.2662 0.1476 0.2069 0.4632
6 5 3-22-23-36-39-43 1 PURE-PATTERN 0.0972 0.0860 0.0894 0.3672
@@ -0,0 +1,6 @@
Tip_Number,Numbers,Superzahl,Strategy,AI_Score,Pattern_Weight,Confidence,Quality
1,8-12-23-28-39-43,8,HYBRID-OPT,0.5407,0.1476,0.4950,0.6337
2,2-8-14-28-32-45,8,HYBRID-OPT,0.5998,0.0869,0.5003,0.6480
3,7-14-21-23-46-47,8,PURE-AI,0.4403,0.1476,0.3817,0.5620
4,8-13-23-28-37-46,0,ENSEMBLE,0.6773,0.1476,0.4124,0.6830
5,3-22-23-36-39-43,1,PURE-PATTERN,0.1821,0.0860,0.1149,0.4103
1 Tip_Number Numbers Superzahl Strategy AI_Score Pattern_Weight Confidence Quality
2 1 8-12-23-28-39-43 8 HYBRID-OPT 0.5407 0.1476 0.4950 0.6337
3 2 2-8-14-28-32-45 8 HYBRID-OPT 0.5998 0.0869 0.5003 0.6480
4 3 7-14-21-23-46-47 8 PURE-AI 0.4403 0.1476 0.3817 0.5620
5 4 8-13-23-28-37-46 0 ENSEMBLE 0.6773 0.1476 0.4124 0.6830
6 5 3-22-23-36-39-43 1 PURE-PATTERN 0.1821 0.0860 0.1149 0.4103
@@ -0,0 +1,11 @@
Tip_Number,Numbers,Superzahl,Strategy,AI_Score,Pattern_Weight,Confidence,Quality
1,8-12-23-28-39-43,8,HYBRID-OPT,0.5407,0.1476,0.4950,0.6337
2,2-8-14-28-32-45,8,HYBRID-OPT,0.5998,0.0869,0.5003,0.6480
3,2-8-13-21-28-38,8,HYBRID-OPT,0.5219,0.0869,0.4653,0.6054
4,7-8-28-37-45-46,0,HYBRID-OPT,0.6448,0.0975,0.5243,0.6669
5,6-8-14-21-28-46,1,HYBRID-OPT,0.6636,0.0869,0.5290,0.6663
6,8-23-27-28-42-47,2,PURE-AI,0.5046,0.0909,0.4219,0.5999
7,6-19-21-37-46-49,7,PURE-AI,0.3274,0.0860,0.2791,0.4843
8,8-13-23-28-37-46,6,ENSEMBLE,0.6773,0.1476,0.4124,0.6830
9,8-13-23-28-37-46,3,ENSEMBLE,0.6773,0.1476,0.4124,0.6830
10,2-9-24-30-35-49,8,PURE-PATTERN,0.0898,0.1476,0.1302,0.3824
1 Tip_Number Numbers Superzahl Strategy AI_Score Pattern_Weight Confidence Quality
2 1 8-12-23-28-39-43 8 HYBRID-OPT 0.5407 0.1476 0.4950 0.6337
3 2 2-8-14-28-32-45 8 HYBRID-OPT 0.5998 0.0869 0.5003 0.6480
4 3 2-8-13-21-28-38 8 HYBRID-OPT 0.5219 0.0869 0.4653 0.6054
5 4 7-8-28-37-45-46 0 HYBRID-OPT 0.6448 0.0975 0.5243 0.6669
6 5 6-8-14-21-28-46 1 HYBRID-OPT 0.6636 0.0869 0.5290 0.6663
7 6 8-23-27-28-42-47 2 PURE-AI 0.5046 0.0909 0.4219 0.5999
8 7 6-19-21-37-46-49 7 PURE-AI 0.3274 0.0860 0.2791 0.4843
9 8 8-13-23-28-37-46 6 ENSEMBLE 0.6773 0.1476 0.4124 0.6830
10 9 8-13-23-28-37-46 3 ENSEMBLE 0.6773 0.1476 0.4124 0.6830
11 10 2-9-24-30-35-49 8 PURE-PATTERN 0.0898 0.1476 0.1302 0.3824