Get started • Machine learning

Train a model

Learn a model from your data and save it with a report card.

Sample data

Made-up data. If you have not loaded it yet, ask your assistant:

  • Load https://gotsimplified.com/samples/daily_sales.csv into my data lake as samples.daily_sales, replacing it if it already exists.

  • Load https://gotsimplified.com/samples/customers.csv into my data lake as samples.customers, replacing it if it already exists.

Download: daily_sales.csv, customers.csv

Try this

  • Train a forecast called store_units on samples.daily_sales: units for each store, 4 weeks ahead.

  • Train a model called units that predicts units in samples.daily_sales from store, price and promo.

  • Train a model called buyers that predicts converted in samples.customers from group, visits and months as a customer. It is about customers: the purpose is to choose who gets the newsletter first, and the reviewer is [your name].

Your assistant may word its answers differently each time; the numbers come from your tables.

Teach it

What is it?

Training is showing the computer many past examples until it can make its own guess.

How does it work?

It tries a few ways, hides some data to test itself, and keeps the best. You get a report card.

Good to know

If the model is about people, you must say what it is for and who checks the results.

Before you start

Load the sample file below into your data lake first.

Make it yours

Your assistant needs the real names. Replace the table and column names in the prompt above with yours. If you are not sure of them, ask first: "Describe my table called orders."

Then ask

Each question builds on the last answer. Ask follow-ups in plain words.

"How good is it?"

"Train a model called buyers_visits that predicts converted in samples.customers from visits only, with the same purpose and reviewer."