June 12th, 2018

Time is Money! Automate Your Time-Series Forecasts with Driverless AI

Category: Driverless AI
Details about H2o ai experiment

Time-series forecasting is one of the most common and important tasks in business analytics. There are many real-world applications like sales, weather, stock market, energy demand, just to name a few. We strongly believe that automation can help our users deliver business value in a timely manner. Therefore, once again we translated our Kaggle Grand Masters’ time-series recipes into our automatic machine learning platform Driverless AI (version 1.2). This blog post introduces the new time-series functionality with a simple sales forecasting example.
The key features/recipes that make automation possible are:

  • Automatic handling of time groups (e.g. different stores and departments)
  • Robust time-series validation
    • Accounts for gaps and forecast horizon
    • Uses past information only (i.e. no data leakage)
  • Time-series specific feature engineering recipes
    • Date features like day of week, day of month etc.
    • AutoRegressive features like optimal lag and lag-features interaction
    • Different types of exponentially weighted moving averages
    • Aggregation of past information (different time groups and time intervals)
    • Target transformations and differentiation
  • Integration with existing feature engineering functions (recipes and optimization)
  • Automatic pipelines generation (see this blog post)

A Typical Example: Sales Forecasting

Below is a typical example of sales forecasting based on Walmart competition on Kaggle. In order to frame it as a machine learning problem, we formulate the historical sales data and additional attributes as shown below:
Raw data:
Table for store sales
Data formulated for machine learning:
Table for departement_strore
Once you have your data prepared in tabular format (see raw data above), Driverless AI can formulate it for machine learning and sort out the rest. If this is your very first session, the Driverless AI assistant (new feature in version 1.2) will guide you through the journey.
Alert for driverless ai
Similar to previous Driverless AI examples, users need to select the dataset for training/test and define the target. For time-series, users need to define the time column (by choosing AUTO or selecting the date column manually). If weighted scoring is required (like the Walmart Kaggle competition), users can select the column with specific weights for different samples.
Details about H2o ai experiment
If users prefer to use automatic handling of time groups, they can leave the setting for time groups columns as AUTO.
simple settings
Expert users can define specific time groups and change other settings as shown below.
Data about simple settings
Once the experiment is finished, users can make new predictions and download the scoring pipeline just like any other Driverless AI experiments.
Walmart demo data
Seeing is believing. Try Driverless AI yourself today. Sign up here for a free 21-day trial license.
Until next time,
Joe
Bonus fact: The masterminds behind our time-series recipes are Marios Michailidis and Mathias Müller so internally we call this feature AutoM&M.

About the Author

Jo Fai Chow
Jo-Fai Chow

Jo-fai (or Joe) has multiple roles at H2O.ai. He is best known as the #360Selfie guy nowadays. On LinkedIn, he is the data science evangelist and community manager but everyone knows that his photography skills totally overshadow his data science knowledge these days. On Twitter, he sounds like a die-hard MATLAB fanboy with the handle @matlabulous (because MATLAB was his favourite tool at Uni). Since joining H2O.ai in 2016, Joe has delivered H2O talks/workshops in 40+ cities around Europe and US. Before joining H2O, he was in the business intelligence team at Virgin Media where he developed data products to enable quick and smart business decisions. He also worked remotely for Domino Data Lab as a data science evangelist promoting products via blogging and giving talks at external events.

Leave a Reply

For Today’s BI Analyst – Accelerating your AI/ML efforts with Driverless AI

Whether you are starting out as a novice data scientist or a veteran in AI

December 10, 2018 - by Jo-Fai Chow
The Making of H2O Driverless AI – Automatic Machine Learning

It is my pleasure to share with you some never before exposed nuggets and insights

December 5, 2018 - by Arno Candel
Gratitude and thank you, makers!

Makers, Happy Thanksgiving - Hope you get to spend time with your loved ones this week. Thank them

November 21, 2018 - by Saurabh Kumar
New features in H2O 3.22

Xia Release (H2O 3.22) There's a new major release of H2O and it's packed with new

November 12, 2018 - by Jo-Fai Chow
Top 5 things you should know about H2O World London

We had a blast at H2O AI World London last week! With a record number

November 6, 2018 - by Bruna Smith
Fallback Featured Image
Anomaly Detection with Isolation Forests using H2O

Introduction Anomaly detection is a common data science problem where the goal is to identify odd

November 6, 2018 - by angela

Join the AI Revolution

Subscribe, read the documentation, download or contact us.

Subscribe to the Newsletter

Start Your 21-Day Free Trial Today

Get It Now
Desktop img