(x)
| 55 | maxp = float(maxp) |
| 56 | |
| 57 | def log10(x): |
| 58 | with tf.name_scope("log10"): |
| 59 | numerator = tf.log(x) |
| 60 | denominator = tf.log(tf.constant(10, dtype=numerator.dtype)) |
| 61 | return numerator / denominator |
| 62 | |
| 63 | mse = tf.reduce_mean(tf.square(prediction - ground_truth)) |
| 64 | if maxp is None: |