I haven’t found the right solution on the Internet, including CSDN. They are all converted to int or multiplied by a number, but actually for the regression task, the label of floating-point number can’t be changed, which will greatly affect the error. My solution is to convert to int first, and then to floating point first
Specifically, for example, y. astype (int). Astype (float)
Read More:
- Error in data training: valueerror: unknown label type: ‘continuous‘
- ValueError: Unknown label type: ‘unknown‘
- Successfully solved the problem of “runtimee” in RESNET dataset classification rror:expected scalar type Long but found Float”
- Pandas read_ Error in json() valueerror: training data
- In machine learning, the prediction errors in sklearn, such as mean square error, etc
- Installing sklearn (scikit learn) module related to Python machine learning in Windows
- Android learning notes 03: some problems and solutions in the learning process
- In many cases, the problem of error reporting by label in latex
- In echarts label.formatter Non effectiveness
- When writing teacher Wu Enda’s machine learning class, there was a problem with the result of using scipy.optimize.fmin_cg
- VMware imports an external virtual machine and displays system error: (unknown exception). Wrong solution
- Create a new project in pycharm: modulenotfounde rror:No module named ‘distutils.util‘
- Start react-native after updating Xcode11 and report an error: Unknown argument type ‘_attribute_’ in method -[RCTAppState getCurren
- OpenGL learning notes and other learning thinking
- Solution of error converting data type varchar to datetime in SQL Server
- An error is reported after Android studio creates a new virtual machine. Emulator: emulator: error: unknown AVD name
- How to Fix TypeError: Cannot cast array data from dtype(‘float64‘) to dtype(‘<U32‘)….
- Error converting data type nvarchar to datetime
- One of the configured repositories failed (Unknown), and yum doesn’t have enough cached data to cont
- error: unknown type name ‘Q_DECLARE_METATYPE‘