Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Created November 7, 2019 14:23
Show Gist options
  • Save mdfarragher/ed7cc80dc7bcf89772a335e01c71eef4 to your computer and use it in GitHub Desktop.
Save mdfarragher/ed7cc80dc7bcf89772a335e01c71eef4 to your computer and use it in GitHub Desktop.
// build a data loading pipeline
// step 1: divide the median house value by 1000
var pipeline = context.Transforms.CustomMapping<HouseBlockData, ToMedianHouseValue>(
(input, output) => { output.NormalizedMedianHouseValue = input.MedianHouseValue / 1000; },
contractName: "MedianHouseValue"
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment