# FIFA-World-Cup-2022
DolphinScheduler machine learning "FIFA World Cup 2022" betting workflow
**YouTube**: [Predict FIFA World Cup 2022 champion and get a daily betting strategy by DolphinScheduler!](https://www.youtube.com/watch?v=pXBINJR2l5Y)
In this project, we will use machine learning to **predict which country will win the FIFA World Cup 2022** and **get a betting strategy every day**.
## World Cup predictions
**Here are the results of two different forecasting methods**
### Simulate 1000 World Cup qualification results based on team win probability
Probability of championship
```
Brazil 0.193
Argentina 0.160
France 0.140
Spain 0.137
England 0.131
```
The top four
```
No.1: Brazil
No.2: France
No.3: Argentina
No.4: Belgium
```
### Choose the team with a high probability of winning
```
No.1: Argentina
No.2: France
No.3: Spain
No.4: Belgium
```
All competition results can be viewed in the following two files
https://github.com/jieguangzhou/FIFA-World-Cup-2022/blob/workflow-pro/results/predict.txt
> The above results are from the branch `workflow-pro`. This branch will train longer models and run more simulations
## Building a prediction system in three steps
### Step-1 start DolphinScheduler
we can start a [Dolphinscheduler](https://dolphinscheduler.apache.org) standalone server using Docker
```shell
docker run --name dolphinscheduler-standalone-server -p 12345:12345 -p 25333:25333 -d jalonzjg/dolphinscheduler-fifa
```
And then, you can log in to the DolphinScheduler at http://localhost:12345/dolphinscheduler/ui
user: admin
password: dolphinscheduler123
![image-20221124232236471](img/image-20221124232236471.png)
### Step-2 submit workflow
```shell
python3 -m pip install apache-dolphinscheduler==3.1.1
```
```shell
export PYDS_HOME=./
python3 pyds.py
```
You can click the `Project` -> `FIFA`
![image-20221124231716302](img/image-20221124231716302.png)
Then, we can see 3 workflow
- training: Use FLAML to train model
- predict: Use the model to predict which country will win the World Cup
- betting-strategy: Get betting strategy every day
![image-20221124231751744](img/image-20221124231751744.png)
### Step-3 run workflow
#### start training workflow
![image-20221124231816267](img/image-20221124231816267.png)
We can view log after the workflow had finished
![image-20221124231849652](img/image-20221124231849652.png)
#### Start predict workflow
We can view log after the workflow had finished
![image-20221124232014546](img/image-20221124232014546.png)
#### Start betting strategy workflow
![image-20221124232037988](img/image-20221124232037988.png)
`$[yyyy-MM-dd]`mean dolphinscheduler will use the current year, month and day as a parameter, we can also set it to `2022-11-26` other date.
![image-20221124232109784](img/image-20221124232109784.png)
没有合适的资源?快使用搜索试试~ 我知道了~
利用机器学习预测2022年的世界杯冠军
共27个文件
py:8个
png:8个
csv:3个
4 下载量 50 浏览量
2022-11-30
11:26:51
上传
评论 2
收藏 5.67MB ZIP 举报
温馨提示
1. 资源是一个完整的2022年世界杯预测的代码和数据集 2. 使用docker部署可视化训练系统 3. python 代码 4. 三步就可以完成模型训练和预测 5. readme包括完整的执行步骤说明
资源推荐
资源详情
资源评论
收起资源包目录
FIFA-World-Cup-2022-master.zip (27个子文件)
FIFA-World-Cup-2022-master
predict_match.py 7KB
calc_result.py 843B
get_odds.py 2KB
config.yaml 3KB
img
image-20221124232037988.png 601KB
image-20221124231751744.png 401KB
image-20221124232014546.png 1.24MB
image-20221124231716302.png 227KB
image-20221124232109784.png 1.12MB
image-20221124231816267.png 634KB
image-20221124231849652.png 1.05MB
image-20221124232236471.png 540KB
data
schedule.csv 1KB
international_matches.csv 3MB
prepare_data.py 3KB
predict_today_match.py 3KB
Dockerfile 148B
LICENSE 1KB
results
predict.txt 28KB
betting_strategy.py 2KB
requirements.txt 22B
.gitignore 2KB
pyds.py 4KB
README.md 3KB
training.py 691B
international_matches.csv 3MB
download_data.sh 331B
共 27 条
- 1
资源评论
Soyoger
- 粉丝: 3159
- 资源: 34
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 407000001.fasset
- J-20240402998-HTE-HTE-2947110DA-D3_整车运动控制器-电压渐变(缓升缓降)-检测报告-XS-汽车及零部件检测中心.pdf.crdownload
- Excel表格VBA-获取文件夹内所有文件路径.zip
- 文件移动.zip
- 反射源代码,源代码,源代码,源代码
- CAJViewer 9.0_x64-setup.exe
- servant C++语言框架rpc的源码实现 tools C++语言框架IDL工具的源码实现 util C++语言.7z
- 使用pyqt创建一个登录具有动态背景的登陆界面
- 实验名称 调幅波信号的解调
- 实验名称 振幅调制器(利用乘法器)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功