Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Created November 7, 2019 14:23
Show Gist options
  • Save mdfarragher/4c8fbc9689081ffa540c8f40b240baf4 to your computer and use it in GitHub Desktop.
Save mdfarragher/4c8fbc9689081ffa540c8f40b240baf4 to your computer and use it in GitHub Desktop.
// filename for data set
var dataPath = Path.Combine(Environment.CurrentDirectory, "california_housing.csv");
// create the machine learning context
var context = new MLContext();
// load the dataset
var data = context.Data.LoadFromTextFile<HouseBlockData>(
path: dataPath,
hasHeader:true,
separatorChar: ',');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment