July 2018
Intermediate to advanced
334 pages
8h 20m
English
At the outset, fulfilling implementation objective 5 requires that we import the following. Create an empty Scala file in the following package and add the following imports in.
After all the imports are in, create a new Scala object called BreastCancerLrPipeline and have this class extend from the WisconsinWrapper trait:
package com.packt.modern.chapter2import com.packt.modern.chapter2.WisconsinWrapperimport org.apache.spark.ml.classification.LogisticRegressionimport org.apache.spark.ml.evaluation.{BinaryClassificationEvaluator, MulticlassClassificationEvaluator}import org.apache.spark.ml.{Pipeline, PipelineStage}import org.apache.spark.mllib.evaluation.BinaryClassificationMetrics ...
Read now
Unlock full access