fix(trainer): clean up some warnings
This commit is contained in:
parent
56b652fad3
commit
bf34559e63
|
@ -48,6 +48,9 @@ namespace NoSoliciting.Trainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
var parentDir = Directory.GetParent(path);
|
var parentDir = Directory.GetParent(path);
|
||||||
|
if (parentDir == null) {
|
||||||
|
throw new ArgumentException("data.csv did not have a parent directory");
|
||||||
|
}
|
||||||
|
|
||||||
var ctx = new MLContext(1);
|
var ctx = new MLContext(1);
|
||||||
|
|
||||||
|
@ -139,6 +142,7 @@ namespace NoSoliciting.Trainer {
|
||||||
Mode.CreateModel => df,
|
Mode.CreateModel => df,
|
||||||
Mode.Interactive => ttd.TrainSet,
|
Mode.Interactive => ttd.TrainSet,
|
||||||
Mode.InteractiveFull => df,
|
Mode.InteractiveFull => df,
|
||||||
|
_ => throw new ArgumentOutOfRangeException($"mode {mode} not handled"),
|
||||||
};
|
};
|
||||||
|
|
||||||
var model = pipeline.Fit(train);
|
var model = pipeline.Fit(train);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user