Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public Model(MLContext mlContext, IEstimator<ITransformer> algorythm, string trainingDataLocation)
_mlContext = mlContext;
_algorythim = algorythm;
_trainingDataView = _mlContext.Data.LoadFromTextFile<BikeSharingDemandSample>(
path: trainingDataLocation,
hasHeader: true,
separatorChar: ',');
Name = algorythm.GetType().ToString().Split('.').Last();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment