TMultiLayerPerceptron * myNN = new TMultiLayerPerceptron("NN_etjetl5,NN_deteta,NN_emfjet,NN_mass,NN_phijet,NN_ntrk_tot,NN_pt_tot,NN_metprj:32:NN_wdiff","NN_type",myNN_tree,"Entry$%2","(Entry$+1)%2"); myNN->SetLearningMethod(TMultiLayerPerceptron::kBFGS); cout << "Starting the training..........." << endl; Train(100,"text,graph,update=10"); cout << " Finished training. " << endl; Export("NN_trained","C++"); cout << " Exported. " << endl;