GithubHelp home page GithubHelp logo

predict_lottery_ticket's Introduction

双色球+大乐透彩票AI预测

介于越来越多的盆友关心本项目,本人将预测系统制作成了小程序,供大家娱乐使用,再不用担心程序调试出bug啦! 后续会不断优化迭代,也欢迎在issue中提出宝贵建议!

avatar

有问题,欢迎联系我(QQ: 270393749,客服群号:246714623)

公众号

avatar

Installing

  • step1,安装anaconda(可参考https://zhuanlan.zhihu.com/p/32925500);

  • step2,创建一个conda环境,conda create -n your_env_name python=3.6;

  • step3,进入创建conda的环境 conda activate your_env_name,然后执行pip install -r requirements.txt;

  • step4,按照Getting Started执行即可,推荐使用PyCharm

Getting Started

python get_data.py  --name ssq  # 执行获取双色球训练数据

如果出现解析错误,应该看看网页 http://datachart.500.com/ssq/history/newinc/history.php 是否可以正常访问 若要大乐透,替换参数 --name dlt 即可

python run_train_model.py --name ssq  # 执行训练双色球模型

开始模型训练,先训练红球模型,再训练蓝球模型,模型参数和超参数在 config.py 文件中自行配置 具体训练时间消耗与模型参数和超参数相关。

python run_predict.py  --name ssq # 执行双色球模型预测

预测结果会打印在控制台

Update

  • 有盆友反馈想要个大乐透的预测玩法,加入对大乐透的数据爬取,模型训练,模型预测等功能,通过传入执行参数 --name dlt即可。

  • 为了降低本项目的使用门槛,废弃docker模式和微服务,按照Getting Started执行脚本,即可获取预测结果。

  • 非常开心有更多的同志们关注项目,并且提出了很多宝贵的问题,但是由于工作较忙,没有给大家比较完善的解答,再次说句抱歉, 大部分问题都是安装依赖问题,我更新了requirements.txt中相关库版本,应该可以解决。

  • 之前有issue反应,因为不同红球模型预测会有重复号码出现,所以将红球序列整体作为一个序列模型看待,推翻之前红球之间相互独立设定, 因为序列模型预测要引入crf层,相关API必须在 tf.compat.v1.disable_eager_execution()下,故整个模型采用 1.x 构建和训练模式, 在 2.x 的tensorflow中 tf.compat.v1.XXX 保留了 1.x 的接口方式。

predict_lottery_ticket's People

Contributors

zepen avatar faeli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.