tensorflow實現多元線性迴歸時預測出的參數爲nan

這是因爲在用feed_dict 進行數據餵養以前沒有作數據歸一化:html 解決辦法:code 使用sklearn包中的preprocessing作歸一化:orm 大媽以下htm from sklearn import preprocessing example是咱們要歸一化的數據 scaler = preprocessing.StandardScaler().fit(example)
相關文章
相關標籤/搜索