MLBazaar / MLPrimitives

Primitives for machine learning and data science.
https://mlbazaar.github.io/MLPrimitives
MIT License
70 stars 38 forks source link

Extract input_shape from X in keras.Sequential #223

Closed csala closed 4 years ago

csala commented 4 years ago

Most (if not all) of the keras.Sequential primitives have an input_shape argument which corresponds to the shape of each element in the input array X, and which now has to be specified by the user as a fixed hyperparameter upon pipeline creation.

The goal is to modify the fit method from the keras.Sequential adapter to make it get the shape of the first element in X as the input_shape in case the user has not specified one.

Also modify all the pipelines to set the default input_shape value to null.