【发布时间】:2021-10-24 22:48:09
【问题描述】:
我有一个带有列的数据
['symboling', 'Company', 'fueltype', 'aspiration', 'doornumber',
'carbody', 'drivewheel', 'enginelocation', 'carlength', 'carwidth',
'curbweight', 'enginetype', 'cylindernumber', 'enginesize',
'fuelsystem', 'horsepower', 'price', 'total_mpg']
目标是预测汽车的价格。现在他的价格数据是连续的。我想知道如何转换它以便我可以使用分类模型。
经过搜索,我确实发现我可以通过定义范围来做到这一点,但我无法理解。请帮帮我
【问题讨论】:
标签: pandas machine-learning scikit-learn regression classification