Other posts in this series:
In the previous article we showed how Tail Refinaria provides a Data Science notebook that can be used to experiment and deploy machine learning models. In this article, we will discuss how we can track the history of a model.
Data Lineage is a topic well known in Data Science, although not many tools provide an easy way to implement it. Data Lineage holds the history of where the data came from, how it was transformed and its legal license.
Tail Refinaria also provides Data Lineage for all the datastores in the Data lake, tracking automatically when a pipeline changes the data and, more importantly, keeping track of the original data licensing of each piece of data. This is important to be compliant with privacy legislations like GDPR or LGPD (the Brazilian data privacy legislation). In the screenshot below, you can see the Data Lineage automatically generated for a datastore in Tail Refinaria.
As more and more machine learning models are used to decide aspects of our lives, knowing how a model was created, which data was used for training it and so on, becomes very important both for model maintainability as for providing transparency on how decisions were made.
Model Lineage keeps the history of a model: when it was trained, using which data, algorithms and parameters. This should be automatically generated each time a new version of a model is generated.
At Tail Refinaria, we provide Model Lineage, tracking automatically the training pipelines and the data used in the training. The screenshot below shows the Model Lineage of the London Bike – kmeans model we created in the previous articles.
Note that for each model version, Tail Refinaria keeps track of which pipeline was used for training, the data that was involved in the training and the data license of each datastore used. If we inspect the pipeline used for training, we can access all the parameters, transformations, feature engineering techniques, etc used to produce that model.
Now, as machine learning models are used to produce new data, the Data Lineage of a datastore should also track the models involved on data production. The screenshot below shows the Data Lineage of the “London Stations Predicted” datastore. Note that the Data Lineage timeline shows that part of the data was generated by the “London Bike – kmeans” model.
Model Lineage is important for transparency and traceability, but in many corporate environments is still not available. We believe that with Tail Refinaria we provided an easy way of doing it and we hope more companies will acknowledge the importance knowing how machine learning models were created.