You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the predict fails for the following reasons:
predict depends in its own code on a line raw_output = self.model_.predict(X) and on a line self._target_encoder.inverse_transform(y). But the attributes model_ and _target_encoder are set in fit() AFTER the checkpoints are saved.
I am currently setting these attributes manually to get things working. Have I missed something or is this a bug?
Thank you for the support.
The text was updated successfully, but these errors were encountered:
Hi.
I am switching from the old
scikeras
wrappers to the newerkeras.api.wrappers.SKLearnClassifier
and have encountered an issue.My workflow includes saving checkpoints:
Later, I want to load one of these checkpoints, and make sure it is wrapped as a scikit-learn object. I do
However, the
predict
fails for the following reasons:predict
depends in its own code on a lineraw_output = self.model_.predict(X)
and on a lineself._target_encoder.inverse_transform(y)
. But the attributesmodel_
and_target_encoder
are set infit()
AFTER the checkpoints are saved.I am currently setting these attributes manually to get things working. Have I missed something or is this a bug?
Thank you for the support.
The text was updated successfully, but these errors were encountered: