cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Difference between MLFlow recipes and projects?

smedegaard
New Contributor III

MLFlow projects are described as

An MLflow Project is a format for packaging data science code in a reusable and reproducible way, based primarily on conventions. In addition, the Projects component includes an API and command-line tools for running projects, making it possible to chain together projects into workflows.

MLFlow Rcipes (previously "pipelines") are described as

MLFlow Recipes is a framework that enables data scientists to quickly develop high-quality models and deploy them to production. Compared to ad-hoc ML workflows, MLflow Recipes offers several major benefits...

They see to serve the same purpose.

  • What's the difference?
  • When does it make sense to use one over the other?

1 ACCEPTED SOLUTION

Accepted Solutions

Priyag1
Honored Contributor II

@Anders Smedegaard Pedersenโ€‹ Each project is simply a directory of files, or a Git repository, containing your code whereas  recipe is an ordered composition of Steps used to solve an ML problem or perform an MLOps task, such as developing a regression model or performing batch model scoring on production data. MLflow Recipes provides APIs and a CLI for running recipes and inspecting their results.

Here a Step represents an individual ML operation, such as ingesting data, fitting an estimator, evaluating a model against test data, or deploying a model for real-time scoring. Each Step accepts a collection of well-defined inputs and produce well-defined outputs according to user-defined configurations and code.

Hope this helps you.

View solution in original post

3 REPLIES 3

Priyag1
Honored Contributor II

@Anders Smedegaard Pedersenโ€‹ Each project is simply a directory of files, or a Git repository, containing your code whereas  recipe is an ordered composition of Steps used to solve an ML problem or perform an MLOps task, such as developing a regression model or performing batch model scoring on production data. MLflow Recipes provides APIs and a CLI for running recipes and inspecting their results.

Here a Step represents an individual ML operation, such as ingesting data, fitting an estimator, evaluating a model against test data, or deploying a model for real-time scoring. Each Step accepts a collection of well-defined inputs and produce well-defined outputs according to user-defined configurations and code.

Hope this helps you.

Anonymous
Not applicable

Hi @Anders Smedegaard Pedersenโ€‹ 

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance! 

smedegaard
New Contributor III

Thanks for the answer @Priyadarshini Gโ€‹ . Although a project has a pre-defined folder structure and standard files, it also "... includes an API and command-line tools for running projects, making it possible to chain together projects into workflows." and we can "run multi-step workflows" with projects, either with the cli or mlflow.projects.run()

"Recipe Templates are git repositories with a standardized, modular layout.". In a recipe we define the flow in recipe.yaml, define our steps in python files in the ./steps folder, and profiles and tests in the corresponding folders

they might have slightly different interfaces, but they still seem to cover 95% of the same needs?

Please enlighten me if there is something I am not seeing.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group