Closed datamonday closed 4 years ago
yes,I konw,please download this first.https://github.com/Neuraxio/Neuraxle-TensorFlow
Yes, you can pip install neuraxle-tensorflow
.
@guillaume-chevalier Your method works, thank you for your reply.
I have been troubled by new errors these days and haven't found a solution. If you have time, can you check it for me? I just want to save the model and use it.Is it because I downloaded the wrong file train_and_save.py? I use the version of it from hereof Neuraxio:neuraxle-refactor.
Thank you again.
The error is here: Traceback (most recent call last):
File "C:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\client\session.py", line 1365, in _do_call return fn(*args)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\client\session.py", line 1350, in _run_fn target_list, run_metadata)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\client\session.py", line 1443, in _call_tf_sessionrun run_metadata)
InvalidArgumentError: 2 root error(s) found. (0) Invalid argument: You must feed a value for placeholder tensor 'TensorflowV1ModelStep/expected_outputs' with dtype float and shape [?,6] [[{{node TensorflowV1ModelStep/expected_outputs}}]] [[TensorflowV1ModelStep/loss/_11]] (1) Invalid argument: You must feed a value for placeholder tensor 'TensorflowV1ModelStep/expected_outputs' with dtype float and shape [?,6] [[{{node TensorflowV1ModelStep/expected_outputs}}]] 0 successful operations. 0 derived errors ignored.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\GraduationCode\LSTM-HAR-latest\train_and_save.py", line 165, in
File "D:\GraduationCode\LSTM-HAR-latest\train_and_save.py", line 150, in main pipeline, outputs = pipeline.fit_transform(data_inputs, expected_outputs)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\pipeline.py", line 681, in fit_transform new_self, data_container = self.handle_fit_transform(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 922, in handle_fit_transform new_self, data_container = self._fit_transform_data_container(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\pipeline.py", line 188, in _fit_transform_data_container step, data_container = step.handle_fit_transform(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 922, in handle_fit_transform new_self, data_container = self._fit_transform_data_container(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\steps\data.py", line 119, in _fit_transform_data_container self.wrapped = self.wrapped.handle_fit(data_container.copy(), context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 905, in handle_fit new_self = self._fit_data_container(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\metaopt\random.py", line 129, in _fit_data_container new_self, results_data_container = self._fit_transform_data_container(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\metaopt\random.py", line 144, in _fit_transform_data_container self.wrapped, results_data_container = self.wrapped.handle_fit_transform(train_data_container, context.push(self.wrapped))
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 922, in handle_fit_transform new_self, data_container = self._fit_transform_data_container(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 1714, in _fit_transform_data_container self.wrapped, data_container = self.wrapped.handle_fit_transform(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 922, in handle_fit_transform new_self, data_container = self._fit_transform_data_container(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\pipeline.py", line 188, in _fit_transform_data_container step, data_container = step.handle_fit_transform(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\pipeline.py", line 488, in handle_fit_transform context=context
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\pipeline.py", line 628, in join_fit_transform step, data_container_batch = step._fit_transform_data_container(data_container_batch, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\pipeline.py", line 188, in _fit_transform_data_container step, data_container = step.handle_fit_transform(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 922, in handle_fit_transform new_self, data_container = self._fit_transform_data_container(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 1714, in _fit_transform_data_container self.wrapped, data_container = self.wrapped.handle_fit_transform(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 922, in handle_fit_transform new_self, data_container = self._fit_transform_data_container(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\pipeline.py", line 188, in _fit_transform_data_container step, data_container = step.handle_fit_transform(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 922, in handle_fit_transform new_self, data_container = self._fit_transform_data_container(data_container, context)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 1016, in _fit_transform_data_container new_self, out = self.fit_transform(data_container.data_inputs, data_container.expected_outputs)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle\base.py", line 1119, in fit_transform out = new_self.transform(data_inputs)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle_tensorflow\tensorflow_v1.py", line 160, in transform return self.transform_model(data_inputs)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\neuraxle_tensorflow\tensorflow_v1.py", line 175, in transform_model results = self.session.run([self[inference_output_name], self['loss']], feed_dict=feed_dict)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run run_metadata_ptr)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\client\session.py", line 1180, in _run feed_dict_tensor, options, run_metadata)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\client\session.py", line 1359, in _do_run run_metadata)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\client\session.py", line 1384, in _do_call raise type(e)(node_def, op, message)
InvalidArgumentError: 2 root error(s) found. (0) Invalid argument: You must feed a value for placeholder tensor 'TensorflowV1ModelStep/expected_outputs' with dtype float and shape [?,6] [[node TensorflowV1ModelStep/expected_outputs (defined at C:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]] [[TensorflowV1ModelStep/loss/_11]] (1) Invalid argument: You must feed a value for placeholder tensor 'TensorflowV1ModelStep/expected_outputs' with dtype float and shape [?,6] [[node TensorflowV1ModelStep/expected_outputs (defined at C:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]] 0 successful operations. 0 derived errors ignored.
Original stack trace for 'TensorflowV1ModelStep/expected_outputs':
File "C:\anaconda3\envs\tensorflow\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\anaconda3\envs\tensorflow\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\anaconda3\envs\tensorflow\lib\site-packages\spyder_kernels\console__main__.py", line 11, in
Traceback (most recent call last): File "D:/GraduationCode/LSTM-HAR-latest/train_and_save.py", line 11, in
from neuraxle_tensorflow.tensorflow_v1 import TensorflowV1ModelStep
ModuleNotFoundError: No module named 'neuraxle_tensorflow'
Thanks.