【发布时间】:2022-01-16 23:26:56
【问题描述】:
我有一个神经网络模型,我希望它适合我的训练数据。当我编译下面的代码行时
history = pipeline.fit(inputs[train], targets[train], epochs=epochs, batchsize=batchsize)
我收到以下错误消息:
Pipeline.fit does not accept the epochs parameter. You can pass parameters to specific
steps of your pipeline using the stepname__parameter format, e.g.
`Pipeline.fit(X, y, logisticregression__sample_weight=sample_weight)`
如何解决这个问题?
【问题讨论】:
-
请发minimal reproducible example;通过提供的信息(未),不可能知道
epochs参数在此处如何涉及。
标签: scikit-learn pipeline