When using fit function to train the model, we encounter an error. First, we find the data. Here, the data type is object
only floating-point type can be accepted. We need to add “. Astype (‘int ‘)” after the data
y_test = y_test.astype('int')
Then it can run normally.
Read More:
- Error in data training: valueerror: unknown label type: ‘continuous‘
- Error in machine learning training data (FIT): valuee rror:Unknown label type:‘continuous‘
- Error in tensorflow loading model valueerror: unknown layer: functional
- GCC compilation error unknown type name ‘bool’‘
- error: unknown type name ‘Q_DECLARE_METATYPE‘
- PHP error Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error:
- When calling time module – time / datetime in wxPython, an error is reported. Valueerror: unknown locale: zh cn
- failed call to cuInit: CUDA_ERROR_UNKNOWN: unknown error
- Error response from daemon: manifest for *** not found: manifest unknown: manifest unknown
- Start react-native after updating Xcode11 and report an error: Unknown argument type ‘_attribute_’ in method -[RCTAppState getCurren
- Solve the problem of the C compiler identification is unknown or the cxx compiler identification is unknown in the process of using cmake
- urlopen error unknown url type:httpë/HTTP Error 400:Bad Request
- [$ injector:unpr ] Unknown provider:–angular.module () function solution
- Android license status unknown solution
- [webpack-cli] Error: Unknown option ‘-p‘
- Angular $ injector:unpr Unknown Provider Error Fixed
- Unknown code: GB18030
- Error 1051 (42s02): unknown table ‘…’
- The C compiler identification is unknown
- The cxx compiler identification is unknown