Icon

04 Model Building on Big Data

04 Model Building on Big Data
Annotations and comments
  • Exercise 4: Model Building on Big Data In this exercise you'll train a prediction model in Spark 1) Create a local big data environment. You can use the default configuration. 2) Read the "Spark/airline_training.parquet" and "Spark/airline_test.parquet" folders into Spark (Parquet to Spark nodes). If the files don't exist, execute the "Write parquet files" metanode first. 3) Filter out the following columns from the training set: - ArrTime - DepTime - All .*Delay columns but the categorical DepartureDelay column - UniqueCarrier, TailNum, and Origin 4) Train a Random Forest model to predict DepartureDelay - Apply "entropy" as the quality measure and increase the maximum depth to 10 5) Apply the model to the test set. Check the "Append individual class probabilities" box. 6) Check the confusion matrix of the model 7) Draw an ROC curve of the model
  • Execute only if training and test sets don't exist in HDFS
  • test
  • training
  • write Spark/airline_training.parquet
  • write Spark/airline_test.parquet

Nodes

Extensions

Links