Commands\DataCommand.cs (7)
206return ModelFileUtils.LoadLoader(Host, rep, new MultiFileSource(path), loadTransforms);
265predictor = ModelFileUtils.LoadPredictorOrNull(Host, rep);
299var trainRoleMappings = ModelFileUtils.LoadRoleMappingsOrNull(Host, rep);
307trainPipe = ModelFileUtils.LoadLoader(Host, rep, new MultiFileSource(null), loadTransforms: true);
388using (var pipeLoaderEntry = rep.OpenEntry(ModelFileUtils.DirDataLoaderModel, ModelLoadContext.ModelStreamName))
389using (var ctx = new ModelLoadContext(rep, pipeLoaderEntry, ModelFileUtils.DirDataLoaderModel))
424ModelSaveContext.SaveModel(rep, loader, ModelFileUtils.DirDataLoaderModel);
Commands\TrainCommand.cs (6)
298return ModelLoadContext.LoadModelOrNull<IPredictor, SignatureLoadModel>(env, out inputPredictor, rep, ModelFileUtils.DirPredictor);
359ModelSaveContext.SaveModel(rep, predictor, ModelFileUtils.DirPredictor);
365ModelSaveContext.SaveModel(rep, dataPipe, ModelFileUtils.DirDataLoaderModel);
373using (var ent = rep.CreateEntry(ModelFileUtils.DirTrainingInfo, "Command.txt"))
377ModelFileUtils.SaveRoleMappings(env, ch, data.Schema, rep);
407using (var ctx = ModelFileUtils.GetDataModelSavingContext(repositoryWriter))