Prepare data for MultilayerPerceptronClassifier in scala
问题 Please keep in mind I'm new to scala. This is the example I am trying to follow: https://spark.apache.org/docs/1.5.1/ml-ann.html It uses this dataset: https://github.com/apache/spark/blob/master/data/mllib/sample_multiclass_classification_data.txt I have prepared my .csv using the code below to get a data frame for classification in Scala. //imports for ML import org.apache.spark.ml.classification.MultilayerPerceptronClassifier import org.apache.spark.ml.evaluation