Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experiments: make notebook more like the pipeline #280

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

dberenbaum
Copy link

This PR makes the notebook and pipeline code more similar by modifying the notebook code to use the same paths and otherwise reusing the code from the pipeline. The changes from the notebook to the pipeline were probably more realistic than making them both so similar, but it makes the repo harder to understand and maintain.

@shcheklein
Copy link
Member

so, what is the current behavior?

  • does it still log artifact into the nested dvc.yaml or does it mean that it won't be saving anything in the notebook now?
  • no experiments in notebook?

Comment on lines +235 to +236
" with Live(\"results/evaluate\") as live:\n",
" live.summary[\"dice_multi\"] = evaluate(learn)"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Experiment still gets saved here. dvc_exp_save=False above is only needed to avoid having two experiments saved for each run since there are two different live instances for train and eval.

"from PIL import Image"
"from PIL import Image\n",
"\n",
"os.chdir(\"..\")\n",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By changing to the root dir at the start, we end up with similar behavior to the pipeline and the notebook writes to dvc.yaml there.

@dberenbaum
Copy link
Author

Studio project to see how it looks: https://studio.iterative.ai/user/dberenbaum/projects/exp-notebook-0nufj91gh8

@dberenbaum dberenbaum merged commit 5be5f1d into master Jan 8, 2024
2 checks passed
@dberenbaum dberenbaum deleted the update-notebook branch January 8, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants