Advertisement
Guest User

Untitled

a guest
May 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // step 6: concatenate everything into a single feature column
  2. .Append(mlContext.Transforms.Concatenate(
  3. "Features",
  4. "Age",
  5. "Pclass",
  6. "SibSp",
  7. "Parch",
  8. "Sex",
  9. "Embarked"))
  10.  
  11. // step 7: use a fasttree trainer
  12. .Append(mlContext.BinaryClassification.Trainers.FastTree(
  13. labelColumnName: DefaultColumnNames.Label,
  14. featureColumnName: DefaultColumnNames.Features));
  15.  
  16. // the rest of the code goes here...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement