Skip to content Skip to sidebar Skip to footer

Typeerror When Training Tensorflow Random Forest Using Tensorforestestimator

I get a TypeError when attempting to train an Tensorflow Random Forest using TensorForestEstimator. TypeError: Input 'input_data' of 'CountExtremelyRandomStats' Op has type float6

Solution 1:

You are using tf.cast in incorrect manner

tf.cast(training_set, tf.float32) #error occurs with/without casts

should be

training_set = tf.cast(training_set, tf.float32)

tf.cast is not in-place method, it is a tensor flow op, as any other operation, and needs to be assigned and run.

Post a Comment for "Typeerror When Training Tensorflow Random Forest Using Tensorforestestimator"