Icon

02_Scaling_Analytics_w_BigData

Annotations and comments
  • Big Data Analytics - Model Selection to Predict Flight Departure Delays on Hive & Spark This workflow trains a number of data analytics models on Hadoop and Spark and automatically selects the best model to predict departure delays from a selected airport. Data is the airline dataset downloadable from: http://stat-computing.org/dataexpo/2009/the-data.html. Departure delay is a delay > 15min. Default selected airport is ORD. This workflow implements data reading, data blending, ETL, guided analytics, dimensionality reduction, advanced data mining models, model selection using: Hadoop, Spark, in-memory, parallelization, grid computing, multithreading and/or in-database to speed up computationally intensive operations. Data available in knime://knime.workflow/data/1_Input
  • Select Options Remote executors Selected years External Data Sources: - Weather - Geo-coordinates - Radar Image Data - Storm Watch Text Data - Calendar - IBM Watson Comments - Mechanics data from web crawling
  • Read Data & Apply Constraints (ETL) in Hive - Local or Remote file reading (unzip) - Constraints (delay definition, selected origin airport, remove cancelled flights) - Data Blending - Dimensionality Reduction
  • Move from Hive to Spark 2.0 Seamlessly convert a Hive query into a Spark RDD
  • Save the Best Model in KNIME Analytics Platform Write the model locally
  • Pre-processing in Spark 2.0 Seamlessly convert a Hive query into a Spark RDD
  • Model Selection in Spark 2.0 - Pre-processing (discretization, binning, normalization, rows reduction) - Bag of Models - Decision Tree & Random Forest - Neural Network & Deep Learning - Gradient Boosted Trees - Logistic Regression (native & from Python) - Your own Ensemble Model - Current Model - Model Selection
  • Besides Hive and Spark, it is also possible to execute a KNIME node in streaming and to take advantage of the GPU computational power for some machine learning algorithms, like for example deep learning.
  • Load model from file
  • delayed
  • undelayed
  • Convert column types
  • collect all scores and models for each clustering
  • no of clusters
  • append no of clusters
  • No of validation
  • groupby departure delay and cluster
  • cluster delayed
  • cluster undelayed
  • bin delay <15min = no delay >=15min = delay
  • keep only flights from airport code
  • remove cancelled delays
  • Quote airport code
  • Table with all days from 2007-2008 with no days to next holidays
  • Join Climate data for ORD with Orig city
  • Join Climate data for Dest Airports with Dest city
  • Climate Data for ORD (Chicago International Airport)
  • Climate Data for Dest Airports
  • Standard Deviation sort ascending
  • ratio # missing values / # rows
  • show table with columns and their std dev
  • show table with columns and their correlation
  • show table with columns and % missing values
  • label for % missing values
  • label for low standard deviation, high correlation
  • keep only best model
  • desc by acuracy
  • Selected model
  • Keep track of nominal features for Spark MLlib
  • keep only columns with no missing vals
  • 2007
  • 2008
  • Connect to Athena
  • Connect to Amazon Redshift
  • concatenate all selected years for the next SQL query
  • SQL_query
  • DB Credentials
  • Date conversion
  • Connect to Hive
  • get domain infos
  • selection integration data
  • Select Year(s)
  • selection of big data platform
  • Change IP and Spark Job Server URL to switch cluster
  • list of integrated data sources
  • list of airport codes
  • Explanation
  • select airport_code from menu
  • Your JobServer URL
  • Cache RDD in memory
  • Spark algos mostly support only numeric columns
  • Override current model with best model

Nodes

Extensions

Links