【发布时间】:2018-02-08 08:01:00
【问题描述】:
png = tf.read_file(filename)
image = tf.image.decode_png(png, dtype=tf.uint16, channels=1)
scaler = preprocessing.MinMaxScaler()
scaled_data = scaler.fit_transform(image)
depth = tf.cast(depth, tf.float32)
图像是从 csv 文件中读取的。我想规范化数据。 上述方法会引发错误。 有人可以告诉我如何应用 scikit learn MinMax scaling 吗?
【问题讨论】: