logo
  • 教程列表
  • SO官方文檔
  • TensorFlow 中使用 Python 的簡單線性迴歸結構
    • 簡單的迴歸函式程式碼結構
    • 主要例行
    • 規範化例程
    • 讀取資料例程
  1. StackOverflow 文件
  2. tensorflow 教程
  3. TensorFlow 中使用 Python 的簡單線性迴歸結構
  4. 規範化例程

規範化例程

Created: November-22, 2018

def feature_normalize(train_X):
    global mean, std
    mean = np.mean(train_X, axis=0)
    std = np.std(train_X, axis=0)

    return np.nan_to_num((train_X - mean) / std)
  • 讀取資料例程
  • 主要例行

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明