You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to use TrAdaBoost with a multi-input TensorFlow model as a base estimator. My input data (Xt, Xs) are lists of the form: [(n_samples, n_timeseries_per_sample, timeseries_len), (n_samples, n_static_params)]. The mismatched shapes generate errors in the check_arrays method when TrAdaBoost tries to turn Xt and Xs into numpy arrays, but I am able to train the base estimator model directly on this data successfully. To my knowledge, TrAdaBoost should work with this type of data. Is there a way around the error, or is this an unsupported use case?
The text was updated successfully, but these errors were encountered:
Yes sorry @kagrawala-RU , TrAdaBoost requires something that can be turned into a numpy array as Xs, Xt, ys, yt inputs. Modifying that would be a nightmare, as multiple operations require Xs, Xt, ys, yt to be numpy arrays (concatenation, len...).
Have you tried to make your data Xt, Xs looks like arrays? Perhaps you can have something like (n_samples, n_timeseries_per_sample, timeseries_len, n_static_params) in a 4D array, then you write something in the fit method of your tensorflow model to transform the data in the desired format? I think Adapt accepts Xs and Xt to be of higher dimension than 2D array.
I am attempting to use TrAdaBoost with a multi-input TensorFlow model as a base estimator. My input data (Xt, Xs) are lists of the form: [(n_samples, n_timeseries_per_sample, timeseries_len), (n_samples, n_static_params)]. The mismatched shapes generate errors in the check_arrays method when TrAdaBoost tries to turn Xt and Xs into numpy arrays, but I am able to train the base estimator model directly on this data successfully. To my knowledge, TrAdaBoost should work with this type of data. Is there a way around the error, or is this an unsupported use case?
The text was updated successfully, but these errors were encountered: