I wonder if I can use a Tensorflow Dataset for training scikit-learn and other ML frameworks.
So, for example, can I take a tf.data.dataset for training xgboost, LogisticReg, RandomForest classifier etc?
i.e. Can I pass the tf.data.dataset object into the .fit() method of these models, for training?
I tried out:
xs=np.asarray([i for i in range(10000)]).reshape(-1, 1)
ys=np.asarray([int(i%2==0)for i in range(10000)])
xs = tf.data.Dataset.from_tensor_slices(xs)
ys = tf.data.Dataset.from_tensor_slices(ys)
cls.fit(xs, ys)
I'm getting the following error:
TypeError: float() argument must be a string or a number, not 'TensorSliceDataset'