chore(trainer): only save model on full run

This commit is contained in:
Anna 2021-01-02 07:31:34 -05:00
parent a07f21ddd3
commit 2f7761b9b0

View File

@ -95,7 +95,9 @@ namespace NoSoliciting.Trainer {
var model = pipeline.Fit(train);
ctx.Model.Save(model, train.Schema, @"../../../model.zip");
if (full) {
ctx.Model.Save(model, train.Schema, @"../../../model.zip");
}
var testPredictions = model.Transform(ttd.TestSet);
var eval = ctx.MulticlassClassification.Evaluate(testPredictions);