rstudio / tfdatasets

R interface to TensorFlow Datasets API
https://tensorflow.rstudio.com/tools/tfdatasets/
34 stars 12 forks source link

feature_spec for cases with multiple response variables #88

Open zavud opened 3 years ago

zavud commented 3 years ago

When I have one response variable, it is easy to use feature_spec for data preprocessing:

library(keras)
library(tfdatasets)
spec <- feature_spec(my_training_data, response_variable ~ .)

However, how do we do it for the cases where we have multiple response variables? This stackoverflow post also asks about it, but there is no answer yet.

t-kalinowski commented 3 years ago

Hi, unfortunately this feature is not supported in feature_spec() currently.