Closed sfsy1 closed 1 year ago
You need to give it data of the same shape. This is used to teach Scikit-Learn how many inputs/outputs the model has and such. For classifiers if any or the targets needs to be one-hot encoded we also need to get a sample with every class, but for regress it’s we quite literally just record the dimensions: https://github.com/adriangb/scikeras/blob/0144439a10cfb8b82bdd57730bc9c91904217af8/scikeras/utils/transformers.py#L336
I see, thanks!
I'm trying to load a pretrained model to be use in deployment and I'm doing the following as specified in the docs. https://www.adriangb.com/scikeras/refs/heads/master/notebooks/Basic_Usage.html#4.2-Saving-using-Keras%E2%80%99-saving-methods
However, it requires that I use the training data
X_regr
andy_regr
in order to initialize the regressor. Is there any way to load the model without using training data?