Giter Site home page Giter Site logo

tf-lottery's Introduction

Tf-lottery

AI体彩预测:大乐透、排列3、排列5、七星彩。

Prerequisites

Directory

./data/lottery.txt rank3.txt rank5.txt starcolor.txt, 体彩历届开奖数据,从体彩有记录开始截止到2020年7月

./data/input.txt, 训练时默认数据源

./save, 训练完成之后保存的AI模型,输出预测数据时调用。该目录有已经成功训练好的体彩AI模型,可直接预测使用。

./tool/crash.py, 清除所有训练记录和日志方便重新开始训练 ./tool/capability.py 用于查看此计算机是否可以GPU运算以及算力大小

Usage

train.py 用于Tensorflow训练学习体彩数据

--data_dir data directory containing input.txt

--save_dir directory to store checkpointed models

--log_dir directory to store tensorboard logs

--rnn_size size of RNN hidden state

--num_layers number of layers in the RNN

--model rnn, gru, lstm, or nas

--batch_size minibatch size

--seq_length RNN sequence length

--decay_rate decay rate for rmsprop

$ python train.py --save_dir save/rank3 --model lstm --batch_size 20 --save_every 500 --decay_rate 0.89 #example

sample.py 训练结束后用于输出体彩预测数据

--save_dir model directory to store checkpointed models

--n number of characters to sample

--prime first lottery text

--sample 0 to use max at each timestep, 1 to sample at each timestep, 2 to sample on spaces

$ python sample.py --save_dir save/rank3 -n 200 --prime 06 --sample 1 #example

ws_server.py 启动 tornado websocket 服务端和Tensorflow训练好的模型交互

Online Demo

link

tf-lottery's People

Contributors

luhao-worker 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.