I was able to get the code running with the test data supplied with the module. Now, I am testing out the code with a custom dataset. However, the dataset isn't just composed of int32 entries but also has float entries. This is probably causing the following error:
InvalidArgumentError: Field 1 in record is not a valid int32: 1.0000000007063299
Could you help me fix it? Is there a keyword in the csvdata module that will accommodate for floating point numbers in the inputs?
give float default value for float features when initializing the traine., then it understands that particular feature as float. for example 0 for integer feature and 0.0 for float features, which should work
I was able to get the code running with the test data supplied with the module. Now, I am testing out the code with a custom dataset. However, the dataset isn't just composed of int32 entries but also has float entries. This is probably causing the following error: InvalidArgumentError: Field 1 in record is not a valid int32: 1.0000000007063299 Could you help me fix it? Is there a keyword in the csvdata module that will accommodate for floating point numbers in the inputs?
The full error trace is below:
`InvalidArgumentError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, args) 1374 try: -> 1375 return fn(args) 1376 except errors.OpError as e:
20 frames /usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata) 1359 return self._call_tf_sessionrun(options, feed_dict, fetch_list, -> 1360 target_list, run_metadata) 1361
/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _call_tf_sessionrun(self, options, feed_dict, fetch_list, target_list, run_metadata) 1452 fetch_list, target_list, -> 1453 run_metadata) 1454
InvalidArgumentError: Field 1 in record is not a valid int32: 1.0000000007063299 [[{{node IteratorGetNext}}]]
During handling of the above exception, another exception occurred:
InvalidArgumentError Traceback (most recent call last)