Advertisement
Guest User

Untitled

a guest
May 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. // step 3: convert string ages to floats
  2. .Append(mlContext.Transforms.Conversion.ConvertType(
  3. "Age",
  4. outputKind: DataKind.Single
  5. ))
  6.  
  7. // step 4: replace missing age values with the mean age
  8. .Append(mlContext.Transforms.ReplaceMissingValues(
  9. "Age",
  10. replacementKind: MissingValueReplacingEstimator.ColumnOptions.ReplacementMode.Mean))
  11.  
  12. // the rest of the code goes here...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement