forked from zepen/predict_Lottery_ticket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
97 lines (91 loc) · 2.37 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# -*- coding: utf-8 -*-
"""
Author: BigCat
"""
import os
ball_name = [
("红球", "red"),
("蓝球", "blue")
]
data_file_name = "data.csv"
name_path = {
"ssq": {
"name": "双色球",
"path": "data/ssq/"
},
"dlt": {
"name": "大乐透",
"path": "data/dlt/"
}
}
model_path = os.getcwd() + "/model/"
model_args = {
"ssq": {
"model_args": {
"windows_size": 3,
"batch_size": 1,
"sequence_len": 6,
"red_n_class": 33,
"red_epochs": 1,
"red_embedding_size": 32,
"red_hidden_size": 32,
"red_layer_size": 1,
"blue_n_class": 16,
"blue_epochs": 1,
"blue_embedding_size": 32,
"blue_hidden_size": 32,
"blue_layer_size": 1
},
"train_args": {
"red_learning_rate": 0.001,
"red_beta1": 0.9,
"red_beta2": 0.999,
"red_epsilon": 1e-08,
"blue_learning_rate": 0.001,
"blue_beta1": 0.9,
"blue_beta2": 0.999,
"blue_epsilon": 1e-08
},
"path": {
"red": model_path + "/ssq/red_ball_model/",
"blue": model_path + "/ssq/blue_ball_model/"
}
},
"dlt": {
"model_args": {
"windows_size": 3,
"batch_size": 1,
"red_sequence_len": 5,
"red_n_class": 35,
"red_epochs": 1,
"red_embedding_size": 32,
"red_hidden_size": 32,
"red_layer_size": 1,
"blue_sequence_len": 2,
"blue_n_class": 12,
"blue_epochs": 1,
"blue_embedding_size": 32,
"blue_hidden_size": 32,
"blue_layer_size": 1
},
"train_args": {
"red_learning_rate": 0.001,
"red_beta1": 0.9,
"red_beta2": 0.999,
"red_epsilon": 1e-08,
"blue_learning_rate": 0.001,
"blue_beta1": 0.9,
"blue_beta2": 0.999,
"blue_epsilon": 1e-08
},
"path": {
"red": model_path + "/dlt/red_ball_model/",
"blue": model_path + "/dlt/blue_ball_model/"
}
}
}
# 模型名
pred_key_name = "key_name.json"
red_ball_model_name = "red_ball_model"
blue_ball_model_name = "blue_ball_model"
extension = "ckpt"