public void LoadModel(string modelName) { var model = ModelsService.Service.Load(modelName); string trainPath; ClearAnalyzerData(); foreach (var feature in FeaturesSelected) { feature.IsSelected = model.FeaturesSelectedNames.Contains(feature.Name); } SetupData.BaseClassifierConfiguration = ClassifierService.GetSetupData(model.ClassifierModel, out trainPath); m_setupData = SetupData.Load(GetSetupDataFileName(trainPath)); if (m_setupData != null) { InputFolder = Path.GetFullPath(trainPath); } else { BuildSetupData(trainPath, AppDataCenter.Singleton.GetSetupDataFileName(trainPath)); } //if ( true ) // { // FieldsSelected.Clear(); // m_setupData = SetupData.Load(GetSetupDataFileName(trainPath)); // InputFolder = Path.GetFullPath(trainPath); // UpdateFieldsSelected(m_setupData.Pages.Select(x => x.DocData)); // } // else // { // SetInputFolder(trainPath, AppDataCenter.Singleton.GetSetupDataFileName(trainPath)); // } this.SelectTrainPages(model.TrainPages); AcceptanceCriteria = model.AcceptanceCriteria; ClassifierService.ApplayModel(model); OnPropertyChanged(NotifyGroup.Configuration); OnPropertyChanged(NotifyGroup.StatisticData); }