I have about 60000 data to train.
After minutes of calculation,all symbols are cleared.
Is it a Bug?
I have 8G memories ,but it's not enough.My cpu is i5-4590.
Here are my codes:
data=ExampleData[{"MachineLearning","MNIST"},"TestData"];
trainingdata=RandomChoice[data,3000];
testdata=RandomChoice[data,1000];
maketuple[i_]=Array[If[i+1==#,1,0]&,10];
transformdata[d_]:=Module[{data=d[[;;,1]],label=d[[;;,2]]},
Flatten[Table[Append[maketuple[j],data[[i]]]->label[[i]]==j,{i,1,Length[data]},{j,0,9}],1]];
tdata=transformdata[trainingdata];
ttest=transformdata[testdata];
c=Classify[tdata];
ClassifierMeasurements[c,ttest,"Accuracy"]
Problem happen when calculate c=Classify[tdata]
.
If I use c=Classify[tdata,Method->"LogisticRegression"];
everything is ok.
Actually I need to add some information to train.
Global*
] any where? or may be the Kernel crashed? That will also cause variable to be cleared. $\endgroup$In
Out
label. If they start from one, than your kernel is crashed. $\endgroup$sample*class
training data. And you are prepending one hot version of class, which significantly increases the number of features. $\endgroup$