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

docs/major update to docs, sphinx, and docs ci script #36

Merged
merged 30 commits into from
Nov 6, 2022

Conversation

madeline-scyphers
Copy link
Owner

@madeline-scyphers madeline-scyphers commented Oct 27, 2022

  • Update ModularMetric to directly save metric_to_eval instead of using…
    … additional class

    ModularMetric use to use a MetricToEval class for json serialization, which wasn't necessary
    at all. Removed that class, and moved the functionality onto ModularMetric. This reduced
    clutter and confusion. Now when you look at a metric, metric.f/metric.metric_to_eval is
    the function, instead of having todo metric.f.func/metric.metric_to_eval.func Which feels
    much easier and cleaner. This also made it easier to make all the built--in metrics
    subclasses, which allowed easier documentation with sphinx rendering.

    Added a test that saves and loads a scheduler and resumes an experiment to check that
    the scheduler saving works. Added another test to save an arbitrary callable that is
    passed in. it doesn't work right now, marked as skip and made an issue to get that
    functionality for scheduler saving and loading with arbitrary callables working at

  • Modify api template
    Modified code reference api section to not use the
    template as much, and allowing each module to be generated
    when it is needed in the api section. This is a tradeoff of
    convencience for more customizability and a better doc design

  • More docstring updates, fix broken rst links
    Add docutils func that adds a reference to the relative
    init.py of all files doc in each submodule

    change sphinx configuration to be nitpicky which revealed a bunch
    of broken sphinx links which were then fixed (except ax and
    botorch links which can't be fixed right now because
    they don't build sphinx in a normal way.
    see intersphinx mapping facebook/Ax#1227
    and see Intersphinx Mapping Request pytorch/botorch#1464
    for more info on when ax and botroch can be linked).

  • Add examples, boa cli info, config info
    Add example cli boa script with output and basic instructions on how to do boa cli

  • Add example notebooks and add docs build to CI
    Add an example notebook that runs a toy example in python and
    saves the output and another one that loads that output
    from the scheduler.json file and then displays the plots

madeline-scyphers and others added 25 commits October 3, 2022 12:31
Add wrapper load_config and wrapper utility functions
Update install instructions to first favor installing in a conda env
and installing the dependencies and then installing with pip
from the GH repo instead of having to clone the repo.
Move x86 off of pre torch 12 b/c nightly fixes the mkl issue
Also will add issue to move off of nightly once that is
released on stable
…-install-w-pip-from-gh

Update install instructions to include pip from repo
… additional class

ModularMetric use to use a MetricToEval class for json serialization, which wasn't necessary
at all. Removed that class, and moved the functionality onto ModularMetric. This reduced
clutter and confusion. Now when you look at a metric, metric.f/metric.metric_to_eval is
the function, instead of having todo metric.f.func/metric.metric_to_eval.func Which feels
much easier and cleaner. This also made it easier to make all the built--in metrics
subclasses, which allowed easier documentation with sphinx rendering.

Added a test that saves and loads a scheduler and resumes an experiment to check that
the scheduler saving works. Added another test to save an arbitrary callable that is
passed in. it doesn't work right now, marked as skip and made an issue to get that
functionality for scheduler saving and loading with arbitrary callables working at
some point.
Modified code reference api section to not use the
template as much, and allowing each module to be generated
when it is needed in the api section. This is a tradeoff of
convencience for more customizability and a better doc design

Also added more module docstrings and improved the ones that
were already there
Add docutils func that adds a reference to the relative
__init__.py of all files __doc__ in each submodule

change sphinx configuration to be nitpicky which revealed a bunch
of broken sphinx links which were then fixed (except ax and
botorch links which can't be fixed right now because
they don't build sphinx in a normal way.
see facebook/Ax#1227
and see pytorch/botorch#1464
for more info on when ax and botroch can be linked).

Add more docstrings
Add an example notebook that runs a toy example in python and
saves the output and another one that loads that output
from the scheduler.json file and then displays the plots
@madeline-scyphers madeline-scyphers changed the title Ci/add sphinx ci script docs/major update to docs, sphinx, and docs ci script Oct 30, 2022
boa/controller.py Outdated Show resolved Hide resolved
boa/metrics/__init__.py Outdated Show resolved Hide resolved
- Minor edits to docs
- Fixed refs/linking in notebooks
Copy link
Collaborator

@jemissik jemissik left a comment

Choose a reason for hiding this comment

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

I pushed a few edits to the docs, and fixed the refs in the notebooks

jemissik and others added 3 commits November 5, 2022 16:16
PR gave feedback on missing info on passthrough metric,
on how to use the experiment_dir in the config file,
and changed the contribution guidelines to say fork
the repo instead of clone it.

Also changed the the x86mac install back to how
it was before before we switched it to nightly
pytorch since nightly pytorch is broken right now.
@jemissik jemissik merged commit 0963b0a into develop Nov 6, 2022
@jemissik jemissik deleted the ci/add-sphinx-ci-script branch November 6, 2022 00:25
@madeline-scyphers madeline-scyphers mentioned this pull request Nov 6, 2022
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