Skip to content
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

Multidimensional data inputs #303

Open
azagajewski opened this issue Jun 15, 2023 · 1 comment
Open

Multidimensional data inputs #303

azagajewski opened this issue Jun 15, 2023 · 1 comment

Comments

@azagajewski
Copy link

I've been trying to train a Convolutional Neural Network on a large, out of memory dataset, using Scikeras as a bridge between Keras and Dask. From some experiments, it seems KerasRegressor enforces the scikit-learn expectation that data be a 2D array of (n_samples,n_features).

Is there a way to overcome the limitation? Obviously reshaping image inputs to fit the API is not ideal.

@adriangb
Copy link
Owner

We support doing transformations like taking a single 2D input and turning it into a multi arbitrary TensorFlow inputs: https://adriangb.com/scikeras/stable/notebooks/DataTransformers.html#4.-Multiple-inputs, but this preserves the behavior of "Scikit-Learn API on the outside, TensorFlow APIs on the inside".

What you're asking for is non Scikit-Learn APIs on the outside of SciKeras, which is something we don't support and don't plan on supporting. While I understand why you want the feature (and you're not the first one to ask for it) the fact of the matter is that supporting that opens up a whole can of worms with respect to what SciKeras should and shouldn't support that I think runs the risk of making everything else more complicated by turning SciKeras into a lot more than a shim between Scikit-Learn and TensorFlow. Considering I receive $0 in donations for this work right now and ML is not the main focus of my current day job I don't want to go down that path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants