Schedule your models and data to be automatically updated


Create a reducer to automatically fetch new data

For this guide, we will be using the Titanic dataset from Kaggle. In a previous tutorial, we covered how you can use that dataset to create a simple predictive model. In this guide, we will be creating a pipeline to automatically update our training data and then use it to re-train the model every day.

For the sake of this guide, the dataset hosted on this URL gets updated on regular intervals and we will create a reducer to directly fetch data from a URL.

On the left-hand menu, click on "New Reducer" and paste the above code in there. In the future, you can modify that code to read data directly from a database like Postgresql.


Create a pipeline

On the left-hand menu, click on "New Pipeline". Then create a task to automatically update your TFrame's data.


Retrain your models

Create a task to automatically retrain your model using the updated training data.


Schedule your pipeline to run every day

At the bottom of the page, schedule your pipeline to run every day.

It’s easy to get started

Download Terrene and start your 14 days free trial

Download Now