Skip to main content

ML is not just about ML

We want our data scientists to ship fast, fail fast, and learn faster. But data scientists belong to a broader environment of data.

Updated 6 min readMarkdown
ML is not just about ML

There has been a massive increase in everything around ML — new algorithms, new frameworks, new tools, and new roles and positions. It is a more than justified spike for a discipline that aims to solve significant problems for many companies and sectors.

Before building and deploying ML models to production, an organization must have a stable Data Platform and mature processes. We want our data scientists to ship fast, fail fast, and learn faster. But data scientists belong to a broader environment of data. To fully understand ML models, we cannot just focus on predictions and performances alone. We must also consider a changing reality and data evolution along with it.

Why are the performance metrics changing? Why is the top feature not available anymore? Do those new same-name columns in different tables mean the same?

Understanding our dependencies and the role they play is crucial. If we can also bring this same knowledge to the users of the models and open a channel for sharing and collaborating, we are heading on the path to success.

The Current Landscape

The boom in AI has brought to the table excellent tools, techniques, and frameworks that boost a Data Scientist’s work. Libraries such as MLflow and PyCaret bring structure to an otherwise messy approach to discovering & modeling data. And this is not a critique! We need our teams to be imaginative and creative, playing as much as possible with the data.

While these tools focus on the ML lifecycle (discover, train, evaluate, deploy, measure…), it is easy to forget what happens around it.

OpenMetadata can play an important role by bringing the missing context, transparency and fostering collaboration around the ML lifecycle. They are key ingredients to turning ML solutions into ML products.

Standardizing the Language

The core foundation of OpenMetadata is creating an **Open Standard for Metadata **to enable clear and consistent communication. The data landscape is rich. Therefore, we need rich definitions and protocols around everything data-related: Tables, Dashboards, Pipelines, ML Models… and their relationships.

With standardized metadata vocabulary and metadata APIs to control the information management, OpenMetadata can help capture all the processes, dependencies, and downstream assets around the ML models. Thus, bringing together all the necessary knowledge to understand, use, and share the value that ML provides.

OpenMetadata and ML

Using this standard language, OpenMetadata ships a powerful set of Connectors to ingest the metadata from various Data Platforms and Services. Topic information from Kafka or table metadata from systems like Redshift or Snowflake, among many others.

Pieces of data from these diverse sources become, directly or indirectly, an ingredient that gets cooked from pipeline to pipeline until ML teams crunch it and call it a Feature. Unfortunately, the big picture of upstream data and pipelines contributing to Feature sources is not easily available or missing.

With OpenMetadata’s ML Model Entity definition, data scientists can add richer metadata related to Features. For example, informing where the Features come from and the transformations and algorithms applied on top of the sources.

Then, developers and data scientists can use the Python API to define instances of the ML Model Entity and push lineage information for all Feature sources.

Collaboration

Teams in their journey to build ML solutions can end up repeating a lot of work, misusing data, and learning many other valuable lessons. Sharing this knowledge with other teams and across the organization is essential to improve the data maturity of a company.

One of the principal tenets of OpenMetadata is to be a catalyst for **collaboration **and help share organizational knowledge. Thanks to the discovery features such as tags and lineage, users can ask the right questions at the right places, breaking information silos.

Data scientists are both consumers and producers of data. By enriching the ML models’ definitions to add lineage information, they will create a link to the company’s knowledge graph. Lineage will help data scientists track the assets that power up our features and make their work discoverable for users navigating the lineage view.

Moreover, applying meaningful descriptions and tags makes the content searchable and shown with its Related Entities. Additionally, informing and reviewing the assets’ ownership can become an entry point for direct collaboration.

— These are the predictions we provide and how we compute our Features. Please share your thoughts and experience, and help us improve.

Handling Evolution

We talked earlier about the evolving nature of data. Knowing what changed on a source at a specific moment can save precious debugging time.

With OpenMetadata, users can inspect the history of metadata changes, thanks to Entity versioning. It captures from purely informational updates, such as modifying a description or adding a tag, to breaking changes when a column gets deleted or data types are modified.

Asset versioning is important for two reasons:

  • We can check if a modification to the sources impacts our upstream dependencies, and
  • Our stakeholders can follow the updates to the ML Models. On top of this, with profiling capabilities to the sources, data teams will be able to track any degradations or feature drifts that may impact the ML model’s performance.

Staying Up-to-date

Many frustrations come from a lack of communication. Even if something breaks, a reassuring “we are looking into it”, and proper updates can bring peace of mind.

We can now use Slack webhooks to share change events and inform our audience. Having an automated communication channel makes sure that nobody is out of the loop.

Back to the Future

You can look at all the features that the OpenMetadata community introduced in release 0.8 here.

The focus of release 0.9 will be on Data Quality, Conversation threads, and the addition of a Business Glossary. These features will allow users to define their data quality tests, host conversations in the OpenMetadata UI, and discover assets related to their terms of interest.

Moreover, we will continue to improve our Lineage and Security features and capture Pipeline status in Airflow.

Summary

Use your favorite tools, research, and pivot. Once you ship your ML product, you can use OpenMetadata to connect the dots and give invaluable context to your solution. We are excited to enable communication and make you and your stakeholders even happier.

Get in Touch

If you were nodding while reading this and would like to supercharge your ML work, or you want to say hi, do not hesitate to reach out! Please take a look at our GitHub repo and drop us a line in Slack.

No comments yet. Be the first to comment.