【问题标题】:What does ImageDataGenerator.fit() function does in Keras Image preprocessing?ImageDataGenerator.fit() 函数在 Keras 图像预处理中的作用是什么?
【发布时间】:2018-12-31 11:50:09
【问题描述】:

有 ImageDataGenerator.flow() 函数,我们在其中传递训练图像并返回增强图像。但是 ImageDataGenerator.fit() 函数有什么作用呢?

【问题讨论】:

    标签: keras image-preprocessing data-augmentation


    【解决方案1】:

    对于某些转换,例如居中或缩放,ImageDataGenerator 需要对数据进行统计,例如特征均值、标准差等。fit() 方法收集这些统计信息。此 API 类似于 scikit-learn 中的预处理函数的工作方式。

    【讨论】:

      猜你喜欢
      • 2019-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-23
      • 2018-07-18
      • 2015-04-09
      • 2018-10-08
      相关资源
      最近更新 更多