Created
July 12, 2019 13:47
-
-
Save NMZivkovic/07ea3ffad1ba545af8d89067203f0d33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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