Spark: Inferring Schema Using Case Classes

Spark: Inferring Schema Using Case Classes

To make this recipe one should know about its main ingredient and that is case classes. These are special classes in Scala and the main spice of this ingredient is that all the grunt work which is needed in Java can be done in case classes in one code line. Spark uses...
Logistic Regression with Spark MLlib

Logistic Regression with Spark MLlib

Dataset: Diabetes data from https://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.data Load it in medical_data folder in hdfs scala> import org.apache.spark.mllib.classification.LogisticRegressionWithLBFGS...
Top