public async void ReshuffleSample( ) { CanInteract = false; SampleLoader.ExtractSample(records, out train, out trainAns, out test, out testAns); await DrawRoc( ); CanInteract = true; }
public RocViewModel( ) { Model = new PlotModel { Title = "Wait, please..." }; logistic = new LogisticRegression( ); Task.Factory.StartNew(() => { records = SampleLoader.LoadRecords("iris.csv"); SampleLoader.ExtractSample(records, out train, out trainAns, out test, out testAns); }).ContinueWith(async(t) => { await DrawRoc( ); }); }