正在创建【七星彩】数据集...
2023-06-01 13:58:48.902 | INFO | common:get_data_run:23 - 【七星彩】最新一期期号:23061
2023-06-01 13:58:48.903 | INFO | common:get_data_run:24 - 正在获取【七星彩】数据。。。
2023-06-01 13:58:49.603 | INFO | common:get_data_run:32 - 【七星彩】数据准备就绪,共2892期, 下一步可训练模型...
2023-06-01 13:58:49.605 | INFO | main:action:359 - 正在创建【七星彩】数据集...
2023-06-01 13:58:49.609 | INFO | main:create_train_data:65 - 训练数据已加载!
2023-06-01 13:58:49.610 | INFO | main:create_train_data:68 - 训练集数据维度: (2892, 7)
2023-06-01 13:58:49.614 | INFO | main:action:364 - 开始训练【七星彩】红球模型...
2023-06-01 13:58:49.615 | INFO | main:train_red_ball_model:99 - 特征数据维度: (2888, 3, 7)
2023-06-01 13:58:49.615 | INFO | main:train_red_ball_model:100 - 标签数据维度: (2888, 7)
2023-06-01 13:58:49.637597: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:354] MLIR V1 optimization pass is not enabled
2023-06-01 13:58:52.521392: W tensorflow/core/common_runtime/forward_type_inference.cc:332] Type inference failed. This indicates an invalid graph that escaped type checking. Error message: INVALID_ARGUMENT: expected compatible input types, but input 1:
type_id: TFT_OPTIONAL
args {
type_id: TFT_PRODUCT
args {
type_id: TFT_TENSOR
args {
type_id: TFT_INT32
}
}
}
is neither a subtype nor a supertype of the combined inputs preceding it:
type_id: TFT_OPTIONAL
args {
type_id: TFT_PRODUCT
args {
type_id: TFT_TENSOR
args {
type_id: TFT_FLOAT
}
}
}
while inferring type of node 'cond_1/output/_1862'
2023-06-01 13:58:55.961582: W tensorflow/c/c_api.cc:349] Operation '{name:'lstm_6/while' id:1828 op device:{requested: '', assigned: ''} def:{{{node lstm_6/while}} = While[T=[DT_INT32, DT_INT32, DT_INT32, DT_VARIANT, DT_FLOAT, 13037780287242672343, DT_VARIANT, DT_VARIANT, DT_VARIANT, DT_VARIANT, DT_VARIANT], _lower_using_switch_merge=true, _num_original_outputs=45, _read_only_resource_inputs=[8, 9, 10], _stateful_parallelism=false, body=lstm_6_while_body_2931[], cond=lstm_6_while_cond_2930[], output_shapes=[[], [], [], [], [1,10], 8875109386904515972, [], [], [], [], []], parallel_iterations=32](lstm_6/while/loop_counter, lstm_6/while/maximum_iterations, lstm_6/time, lstm_6/TensorArrayV2_1, lstm_6/zeros, lstm_6/zeros_1, lstm_6/strided_slice_1, lstm_6/TensorArrayUnstack/TensorListFromTensor, lstm_6/lstm_cell_6/kernel, lstm_6/lstm_cell_6/recurrent_kernel, lstm_6/lstm_cell_6/bias, lstm_6/while/EmptyTensorList, lstm_6/while/EmptyTensorList_1, lstm_6/while/EmptyTensorList_2, lstm_6/while/EmptyTensorList_3, lstm_6/while/EmptyTensorList_4, lstm_6/while/EmptyTensorList_5, lstm_6/while/EmptyTensorList_6, lstm_6/while/EmptyTensorList_7, lstm_6/while/EmptyTensorList_8, lstm_6/while/EmptyTensorList_9, lstm_6/while/EmptyTensorList_10, lstm_6/while/EmptyTensorList_11, lstm_6/while/EmptyTensorList_12, lstm_6/while/EmptyTensorList_13, lstm_6/while/EmptyTensorList_14, lstm_6/while/EmptyTensorList_15, lstm_6/while/EmptyTensorList_16, lstm_6/while/EmptyTensorList_17, lstm_6/while/EmptyTensorList_18, lstm_6/while/EmptyTensorList_19, lstm_6/while/EmptyTensorList_20, lstm_6/while/EmptyTensorList_21, lstm_6/while/EmptyTensorList_22, lstm_6/while/EmptyTensorList_23, lstm_6/while/EmptyTensorList_24, lstm_6/while/EmptyTensorList_25, lstm_6/while/EmptyTensorList_26, lstm_6/while/EmptyTensorList_27, lstm_6/while/EmptyTensorList_28, lstm_6/while/EmptyTensorList_29, lstm_6/while/EmptyTensorList_30, lstm_6/while/EmptyTensorList_31, lstm_6/while/EmptyTensorList_32, lstm_6/while/EmptyTensorList_33)}}' was changed by setting attribute after it was run by a session. This mutation will have no effect, and will trigger an error in the future. Either don't modify nodes after running them or create a new session.
Traceback (most recent call last):
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\client\session.py", line 1378, in _do_call
return fn(*args)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\client\session.py", line 1361, in _run_fn
return self._call_tf_sessionrun(options, feed_dict, fetch_list,
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\client\session.py", line 1454, in _call_tf_sessionrun
return tf_session.TF_SessionRun_wrapper(self._session, options, feed_dict,
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,0,6] = 13 is not in [0, 10)
[[{{node embedding/embedding_lookup}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run_train_model.py", line 515, in
run(args.name, list_windows_size)
File "run_train_model.py", line 392, in run
action(name)
File "run_train_model.py", line 366, in action
train_red_ball_model(name, x_data=train_data["red"]["x_data"], y_data=train_data["red"]["y_data"])
File "run_train_model.py", line 160, in train_red_ball_model
, loss, pred = sess.run([
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\client\session.py", line 968, in run
result = self._run(None, fetches, feed_dict, options_ptr,
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\client\session.py", line 1191, in _run
results = self._do_run(handle, final_targets, final_fetches,
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\client\session.py", line 1371, in _do_run
return self._do_call(_run_fn, feeds, fetches, targets, options,
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\client\session.py", line 1397, in _do_call
raise type(e)(node_def, op, message) # pylint: disable=no-value-for-parameter
tensorflow.python.framework.errors_impl.InvalidArgumentError: Graph execution error:
Detected at node 'embedding/embedding_lookup' defined at (most recent call last):
File "run_train_model.py", line 515, in
run(args.name, list_windows_size)
File "run_train_model.py", line 392, in run
action(name)
File "run_train_model.py", line 366, in action
train_red_ball_model(name, x_data=train_data["red"]["x_data"], y_data=train_data["red"]["y_data"])
File "run_train_model.py", line 102, in train_red_ball_model
red_ball_model = LstmWithCRFModel(
File "C:\Users\eru1030\Desktop\predict_Lottery_ticket-main\modeling.py", line 38, in init
embedding = tf.keras.layers.Embedding(words_size, embedding_size)(self._inputs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\keras\engine\base_layer_v1.py", line 838, in call
outputs = call_fn(cast_inputs, *args, **kwargs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\keras\layers\core\embedding.py", line 208, in call
out = tf.nn.embedding_lookup(self.embeddings, inputs)
Node: 'embedding/embedding_lookup'
indices[0,0,6] = 13 is not in [0, 10)
[[{{node embedding/embedding_lookup}}]]
Original stack trace for 'embedding/embedding_lookup':
File "run_train_model.py", line 515, in
run(args.name, list_windows_size)
File "run_train_model.py", line 392, in run
action(name)
File "run_train_model.py", line 366, in action
train_red_ball_model(name, x_data=train_data["red"]["x_data"], y_data=train_data["red"]["y_data"])
File "run_train_model.py", line 102, in train_red_ball_model
red_ball_model = LstmWithCRFModel(
File "C:\Users\eru1030\Desktop\predict_Lottery_ticket-main\modeling.py", line 38, in init
embedding = tf.keras.layers.Embedding(words_size, embedding_size)(self._inputs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\keras\engine\base_layer_v1.py", line 838, in call
outputs = call_fn(cast_inputs, *args, **kwargs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\keras\layers\core\embedding.py", line 208, in call
out = tf.nn.embedding_lookup(self.embeddings, inputs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\util\traceback_utils.py", line 150, in error_handler
return fn(*args, **kwargs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\util\dispatch.py", line 1176, in op_dispatch_handler
return dispatch_target(*args, **kwargs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\ops\embedding_ops.py", line 402, in embedding_lookup_v2
return embedding_lookup(params, ids, "div", name, max_norm=max_norm)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\util\traceback_utils.py", line 150, in error_handler
return fn(*args, **kwargs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\util\dispatch.py", line 1176, in op_dispatch_handler
return dispatch_target(*args, **kwargs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\ops\embedding_ops.py", line 330, in embedding_lookup
return _embedding_lookup_and_transform(
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\ops\embedding_ops.py", line 144, in _embedding_lookup_and_transform
array_ops.gather(params[0], ids, name=name), ids, max_norm)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\util\traceback_utils.py", line 150, in error_handler
return fn(*args, **kwargs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\util\dispatch.py", line 1176, in op_dispatch_handler
return dispatch_target(*args, **kwargs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\util\deprecation.py", line 561, in new_func
return func(*args, **kwargs)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\ops\array_ops.py", line 5284, in gather
return params.sparse_read(indices, name=name)
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\ops\resource_variable_ops.py", line 750, in sparse_read
value = gen_resource_variable_ops.resource_gather(
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\ops\gen_resource_variable_ops.py", line 620, in resource_gather
_, _, _op, _outputs = _op_def_library._apply_op_helper(
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\framework\op_def_library.py", line 797, in _apply_op_helper
op = g._create_op_internal(op_type_name, inputs, dtypes=None,
File "C:\Users\eru1030\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\framework\ops.py", line 3800, in _create_op_internal
ret = Operation(