【发布时间】:2020-05-21 15:55:18
【问题描述】:
我想用neuraxle 创建一个简单的管道(我知道我可以使用其他库,但我想使用neuraxle),我想在其中清理数据、拆分数据、训练 2 个模型并进行比较。
我希望我的管道做这样的事情:
p = Pipeline([
PreprocessData(),
SplitData(),
(some magic to start the training of both models with the split of the previous step)
("model1", model1(params))
("model2", model2(params))
(evaluate)
])
我什至不知道这是否可能,因为我在文档中找不到任何内容。
我还尝试使用 sklearn 以外的其他模型(例如 catboost、xgboost ...),但我得到了错误
AttributeError: 'CatBoostRegressor' 对象没有属性 'setup'
我想过为模型创建一个类,但我不会使用neuraxle 的超参数搜索
【问题讨论】:
-
始终共享整个错误消息。
标签: python machine-learning scikit-learn pipeline neuraxle