-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scikeras and Keras Input layer #276
Comments
I would like to use Keras model without Input layer, because I try to build stacked model (with preprocessing pipeline). due to this architecture it is very difficult to determine the input shape, because a preprocessing step can add columns... |
I'll look into making that backwards compatible but I believe we put that there because sklearn estimators are required to expose their input size. Could you use the |
Here you can find an example of regression. |
Have you had a chance to check the documentation on how to create dynamically sized input layers? Unfortunately the notebook you linked is a bit too complex and specific to your use case for me to rewrite and understand. If the above doesn't work, could you submit a self contained reproducibile example please? |
I sent the following issue 16495.
Following the advice, I encounter an incompatibility between keras.wrappers.scikit_learn and scikeras.
With keras.wrappers.scikit_learn, I can train a model without Input layer.
With scikeras, it is not possible to do it, the program returns an error :
So I decided to suppress the call
self._check_model_compatibility(y)
in the function_fit
in the file wrappers.py.Now it works fine, but it is not a good solution.
Is it possible to integrate Keras model without input layer ?
The text was updated successfully, but these errors were encountered: