因此,我正在测试一些代码,每次运行它,我都会遇到内存错误。我什至在anaconda提示符中使用了以下行,我现在真的不知道该怎么办。同样,计算机是32位的64位操作系统,任务管理器说它只使用了35%的可用内存。
我在anaconda提示符下使用的是
$teacher->classes->class
我的代码:
jupyter notebook --notebook-dir='D:/' --NotbookApp.iopub_Data_Rate_Limit=1.6e10
错误:
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
from sklearn.ensemble import IsolationForest
df = pd.read_csv('D:\\Project\\database\\4-Final\\Final After.csv',low_memory=True)
iso_forest = IsolationForest(behaviour='new',n_estimators=300, contamination='auto',random_state=42)
X=(df['Power_kW'].values.reshape(-1,1))
iso_forest = iso_forest.fit(X)
isof_outliers = iforest.predict(X)
isoF_outliers_values = df[iforest.predict(X) == -1]
isoF_outliers_values