Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks Machine Learning Professional Topic 2 Question 38 Discussion

Actual exam question for Databricks's Databricks Machine Learning Professional exam
Question #: 38
Topic #: 2
[All Databricks Machine Learning Professional Questions]

A data scientist is using MLflow to track their machine learning experiment. As a part of each MLflow run, they are performing hyperparameter tuning. The data scientist would like to have one parent run for the tuning process with a child run for each unique combination of hyperparameter values.

They are using the following code block:

The code block is not nesting the runs in MLflow as they expected.

Which of the following changes does the data scientist need to make to the above code block so that it successfully nests the child runs under the parent run in MLflow?

Show Suggested Answer Hide Answer
Suggested Answer: E

Contribute your Thoughts:

Royce
2 days ago
I think I saw a practice question where we had to use a nested argument, but I can't recall if it was for the parent or child runs.
upvoted 0 times
...
Huey
8 days ago
I remember something about indentation being important in Python, so maybe indenting the child run blocks could help?
upvoted 0 times
...
Micaela
13 days ago
I'm a little unsure about this one. The options all seem plausible, but I'm not confident which one is the right change to make. I'll need to review the MLflow documentation to make sure I understand the nesting behavior correctly.
upvoted 0 times
...
Annamae
19 days ago
Adding the nested=True argument to the parent run and removing it from the child runs sounds like a good strategy. That should help establish the proper hierarchy between the parent and child runs in MLflow.
upvoted 0 times
...
Novella
24 days ago
Okay, let me see. I'm guessing we need to indent the child run blocks within the parent run block to get the nesting right. That seems like the most straightforward solution.
upvoted 0 times
...
Elina
30 days ago
Hmm, I'm a bit confused. The code block doesn't seem to be nesting the runs as expected, but I'm not sure which change would fix that. I'll need to think through the options carefully.
upvoted 0 times
...
Dorethea
1 month ago
I think the key here is to properly nest the child runs under the parent run. Based on the options, I'd say adding the nested=True argument to the parent run and removing it from the child runs should do the trick.
upvoted 0 times
...
Malcolm
6 months ago
Hmm, I'm not sure. Maybe we should just print('Hello, World!') and call it a day.
upvoted 0 times
Joanne
5 months ago
User3: E) Add the nested=True argument to the parent run and remove the nested=True arguments from the child runs
upvoted 0 times
...
Vicente
5 months ago
User2: B) Add the nested=True argument to the parent run
upvoted 0 times
...
Josphine
6 months ago
User1: A) Indent the child run blocks within the parent run block
upvoted 0 times
...
...
Becky
6 months ago
But wouldn't adding the nested=True argument to the parent run also achieve the same result?
upvoted 0 times
...
Luis
6 months ago
This is a classic case of not following the MLflow documentation. Option E is the correct answer, no doubt about it.
upvoted 0 times
Flo
6 months ago
That makes sense, it will help nest the child runs under the parent run in MLflow.
upvoted 0 times
...
Zachary
6 months ago
No, they should actually add the nested=True argument to the parent run and remove it from the child runs.
upvoted 0 times
...
Dan
6 months ago
I think the data scientist should add the nested=True argument to the parent run.
upvoted 0 times
...
...
Margot
6 months ago
I agree with Ammie. It makes sense to nest the child runs under the parent run.
upvoted 0 times
...
Katlyn
7 months ago
I think the key is to indent the child run blocks within the parent run block. That should do the trick. Option A is the way to go.
upvoted 0 times
Lorrie
5 months ago
Exactly, it's a small adjustment but it will make a big difference in organizing the runs.
upvoted 0 times
...
Tricia
5 months ago
Great, so the data scientist just needs to make that simple change in the code.
upvoted 0 times
...
Chanel
5 months ago
I agree, that's the key to nesting the child runs under the parent run in MLflow.
upvoted 0 times
...
Shawna
5 months ago
Option A is correct. Indenting the child run blocks within the parent run block will nest them properly.
upvoted 0 times
...
...
Ammie
7 months ago
I think the data scientist should indent the child run blocks within the parent run block.
upvoted 0 times
...
Rozella
7 months ago
The nested=True argument should be added to the parent run to nest the child runs under it. Option B looks good to me.
upvoted 0 times
Leatha
5 months ago
Good choice, let's update the code with nested=True for the parent run.
upvoted 0 times
...
Adelaide
5 months ago
Let's go with option B then.
upvoted 0 times
...
Dorcas
5 months ago
I agree, adding nested=True to the parent run should nest the child runs.
upvoted 0 times
...
Valentin
5 months ago
I think option B is the correct one.
upvoted 0 times
...
Talia
5 months ago
Great, let's make the change and see if it works.
upvoted 0 times
...
Shawna
5 months ago
That makes sense, let's go with option B then.
upvoted 0 times
...
Bong
6 months ago
I agree, adding nested=True to the parent run should nest the child runs.
upvoted 0 times
...
Arleen
6 months ago
I think option B is the correct one.
upvoted 0 times
...
...

Save Cancel