-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update library reference * update existing dashboard section * add images to notebooks * add text content to viz notebooks
- Loading branch information
Showing
25 changed files
with
813 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
.. _visualizations: | ||
|
||
Visualizations | ||
************** | ||
|
||
``rubicon_ml.viz`` contains a number of visualization widgets powered by | ||
`Dash <https://dash.plotly.com>`_ and `Plotly <https://plotly.com/>`_. | ||
Each widget provides a unique UI for exploring and visualizing projects and | ||
experiments stored locally or in S3. The widgets can be compiled into an | ||
interactive dashboard. They can also run in the browser or any iPython | ||
environment like Jupyter Notebook, JupyterLab or JupyterHub. With some | ||
extra work, they could be deployed to a static URL using Docker. | ||
|
||
| | ||
.. figure:: _static/images/dashboard.png | ||
:align: center | ||
:alt: rubicon-ml dashboard | ||
|
||
A **Dashboard** composed of an **Experiments Table** and a **Metric | ||
Correlation Plot**. | ||
|
||
Available Widgets | ||
================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
visualizations/dataframe-plot | ||
visualizations/experiments-table | ||
visualizations/metric-correlation-plot | ||
visualizations/metric-lists-comparisons | ||
|
||
Dashboarding | ||
============ | ||
|
||
The widgets detailed in the examples above can also be compiled into an | ||
interactive dashboard. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
visualizations/dashboard | ||
|
||
Basic Usage | ||
=========== | ||
|
||
Each individual widget can be launched directly from Python code. Widgets | ||
will be hosted locally. You can navigate to the provided link in each widgets' | ||
output, or visualize the widget in-line if you are running from a Jupyter | ||
environment. | ||
|
||
.. code-block:: python | ||
from rubicon_ml.viz import ExperimentsTable | ||
ExperimentsTable(experiments=my_rubicon_project.experiments()).serve() | ||
The above launches the experiments table on ``localhost:8050`` and will run from | ||
any Python interpreter. If you're working in a Jupyter environment, you can | ||
launch the dashboard inline in a notebook with ``show``: | ||
|
||
.. code-block:: python | ||
ExperimentsTable(experiments=my_rubicon_project.experiments()).show() | ||
If you need to configure the Dash proxy, that can also be done with a | ||
few extra parameters: | ||
|
||
.. code-block:: python | ||
dash_kwargs = { | ||
"requests_pathname_prefix": "/proxy/8050", | ||
} | ||
run_server_kwargs = { | ||
"proxy": "http://127.0.0.1:8050::https://my-jupyterhub-server.com/", | ||
} | ||
ExperimentsTable(experiments=my_rubicon_project.experiments()).serve( | ||
dash_kwargs=dash_options, | ||
run_server_kwargs=run_server_kwargs, | ||
) | ||
More info on configuring proxies and additional ``dash_kwargs`` can be found in the | ||
`Dash API Reference <https://dash.plotly.com/reference>`_. | ||
|
||
CLI | ||
=== | ||
|
||
The ``rubicon_ml`` CLI can lauch a dashboard containing an **Experiments | ||
Table** stacked on top of a **Metric Correlation Plot**, as shown in the | ||
figure above. | ||
|
||
.. code-block:: shell | ||
rubicon_ml ui --root-dir /rubicon-root --project-name "My Cool Project" | ||
Use the ``--help`` flag for full usage details: | ||
|
||
.. code-block:: shell | ||
rubicon_ml ui --help |
Oops, something went wrong.