RoyalHaskoningDHV / sam

Python package for time series analysis and machine learning
MIT License
25 stars 6 forks source link

Make validation of X less strict in ConstantTemplate #75

Closed philiproeleveld closed 1 year ago

philiproeleveld commented 1 year ago

Since ConstantTemplate (the sklearn estimator for ConstantTimeseriesRegressor) only uses the input data X to determine the shape of the predictions, it isn't necessary for X to have specifically numeric dtypes without any nan or inf values, so it shouldn't check for this when calling check_X_y/check_array.