Last active
May 16, 2018 15:32
-
-
Save kaysush/b4b4a9643cb90a6a2b434f6a0d0ddb13 to your computer and use it in GitHub Desktop.
Assembling Pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assemble the pipeline | |
val stages = Array(genderIndexer, genderOneHotEncoder, vectorAssembler, scaler, logisticRegression) | |
val pipeline = new Pipeline().setStages(stages) | |
//Fit the pipeline | |
val model = pipeline.fit(train) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment