我有一个包含kerasRegressor的scikit-learn管道:
estimators = [
('standardize', StandardScaler()),
('mlp', KerasRegressor(build_fn=baseline_model, nb_epoch=5, batch_size=1000, verbose=1))
]
pipeline = Pipeline(estimators)
训练完管道后,我正在尝试使用joblib保存到磁盘...
joblib.dump(pipeline, filename , compress=9)
但是我遇到一个错误:
RuntimeError: maximum recursion depth exceeded
您如何将管道保存到磁盘上?