I am training a model with Tensorflow Estimator
, and my data is not balanced. I want to correct for this by weighting each training example.
In raw Tensorflow one might do it like this. Is there an easy way to do this in Estimator
? Perhaps building a custom input_fn
?