0
我想訓練前饋神經網絡,進行二元分類。我的數據集是6.2M,尺寸爲1.5M。我正在使用PyBrain。我無法加載一個數據點。我得到MemoryError。 PyBrain:MemoryError:加載訓練數據集
我的代碼片段是:
Train_ds = SupervisedDataSet(FV_length, 1) #FV_length is a computed value. 150000
feature_vector = numpy.zeros((FV_length),dtype=numpy.int)
#activate feature values
for index in nonzero_index_list:
feature_vector[index] = 1
Train_ds.addSample(feature_vector,class_label) # both the arguments are tuples