我使用下面的代碼來保存隨機森林模型。我正在使用cPickle來保存訓練有素的模型。當我看到新的數據時,我可以逐漸地訓練模型。 目前,列車集有大約2年的數據。有沒有一種方法可以在另外兩年的時間裏進行訓練,並且(種類)將其附加到現有的已保存模型上。 rf = RandomForestRegressor(n_estimators=100)
print ("Trying to fit the Rando
我正在嘗試使用Isolation Forest sklearn implementation來訓練包含357個特徵的數據集。當max features變量設置爲1.0(默認值)時,我可以成功地訓練並獲得結果。 然而,當最大的特徵被設置爲2,它提供了以下錯誤: ValueError: Number of features of the model must match the input.
Mod