You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
# Images by path
In the old tutorials we included images as base64 attachments but in the new ones we are specifying them via filepath. Relative filepaths in the notebook were breaking during the conversion process because the tutorial MDX file ends up in a different filesystem location while the image file was being left behind. We fix this by copying the image file to the tutorials docs location and updating the relative file path as appropriate.
A half-baked implementation of this was already present in the script but was being bypassed.
# Images as base64 attachments
The old tutorials were including images using base64 attachments which were not properly supported by the conversion script.
These image attachments are stored in the notebook cell's "attachments" field in base64 format with their associated mime_type and referenced in the markdown via attachment name.
The pattern we search for in the Markdown is `` with three groups:
- group 1 = alt_text (optional)
- group 2 = attachment_name
- group 3 = title (optional)
To represent this in MD we replace the attachment reference with the base64 encoded string as ``
This fix won't automatically propogate to the broken old tutorials, in a separate commit I'll fix them by updating the pre-built tutorial mdx stored in the `docusaurus-versions` branch
Pull Request resolved: #3512
Reviewed By: mpolson64
Differential Revision: D71322665
Pulled By: CristianLara
fbshipit-source-id: f25fe4c1fb057539f79e40eeebef3fa040b3f84d
Copy file name to clipboardexpand all lines: tutorials/closed_loop/closed_loop.ipynb
+1-1
Original file line number
Diff line number
Diff line change
@@ -460,7 +460,7 @@
460
460
"\n",
461
461
"Internally, Ax uses a class named `Scheduler` to orchestrate the trial deployment, polling, data fetching, and candidate generation.\n",
462
462
"\n",
463
-
"\n",
463
+
"\n",
464
464
"\n",
465
465
"The `OrchestrationConfig` provides users with control over various orchestration settings:\n",
466
466
"* `parallelism` defines the maximum number of trials that may be run at once. If your external system supports multiple evaluations in parallel, increasing this number can significantly decrease experimentation time. However, it is important to note that as parallelism increases, optimiztion performance often decreases. This is because adaptive experimentation methods rely on previously observed data for candidate generation -- the more tirals that have been observed prior to generation of a new candidate, the more accurate Ax's model will be for generation of that candidate.\n",
0 commit comments