Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // step 3: convert string ages to floats
- .Append(mlContext.Transforms.Conversion.ConvertType(
- "Age",
- outputKind: DataKind.Single
- ))
- // step 4: replace missing age values with the mean age
- .Append(mlContext.Transforms.ReplaceMissingValues(
- "Age",
- replacementKind: MissingValueReplacingEstimator.ColumnOptions.ReplacementMode.Mean))
- // the rest of the code goes here...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement