cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
cancel
Showing results for 
Search instead for 
Did you mean: 

What are the parameters For MLflow Project file

confusedIntern
New Contributor III

Hi! I was just wondering what are the parameters For MLflow Project file?

I'm following this tutorial to create my own MLflow Project: https://docs.databricks.com/applications/mlflow/projects.html

and within this tutorial, the MLproject file looks like this:

name: My Project
 
conda_env: my_env.yaml
 
entry_points:
  main:
    parameters:
      data_file: path
      regularization: {type: float, default: 0.1}
    command: "python train.py -r {regularization} {data_file}"
  validate:
    parameters:
      data_file: path
    command: "python validate.py {data_file}"

How did they determine what the parameters are? What exactly are parameters? Are they the parameters from when you do log_param in Mlflow in the notebook?

Please help! Many thanks!

4 REPLIES 4

Prabakar
Esteemed Contributor III
Esteemed Contributor III

You can refer to MLflow doc for more details.

Vidula
Honored Contributor

Hi there @Margie Kale​ 

Does @Prabakar Ammeappin​ response answer your question? If yes, would you be happy to mark it as best so that other members can find the solution more quickly?

We'd love to hear from you.

Thanks!

Anonymous
Not applicable

I am also encountering this issue. Don't know why its happening.

sean_owen
Honored Contributor II
Honored Contributor II

These parameters are parameters that you will specify when you run the MLflow Project with the mlflow CLI. It lets you parameterize your code, and then pass different parameters to it. How you use them is up to your code. These are not model hyperparameters, of the type you might log with a model.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.