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: updated README #578

Merged
merged 3 commits into from
Dec 6, 2023
Merged

docs: updated README #578

merged 3 commits into from
Dec 6, 2023

Conversation

musslick
Copy link
Collaborator

@musslick musslick commented Nov 25, 2023

Description

Updated readme file to resolve #529

Type of change

Delete as appropriate:

  • doc: Documentation

Features (Optional)

  • add basic installation instructions (pip install)
  • add minimum example
  • add link to contribution guidelines (in addition to doc)
  • consider swapping Brainstorm logo with animated version
  • consider moving logos to top.

May need some help from @younesStrittmatter or @chadcwilliams to add a minimum example.

@musslick musslick added the documentation Improvements or additions to documentation. label Nov 25, 2023
@musslick musslick self-assigned this Nov 25, 2023
Copy link
Collaborator

@benwandrew benwandrew left a comment

Choose a reason for hiding this comment

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

looks good!

Copy link
Collaborator

@chadcwilliams chadcwilliams left a comment

Choose a reason for hiding this comment

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

Quick note on a typo, but looks good when we are ready to add the example.

README.md Outdated
## Installation


We recommended using a `Python` environment manager like `virtualenv`. You may refer to the Development Guide on how to [set up a virtual environment](https://autoresearch.github.io/autora/contribute/setup/#create-a-virtual-environment).
Copy link
Collaborator

Choose a reason for hiding this comment

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

"We recommended" should be "We recommend"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for noticing this; fixed it!

Copy link
Collaborator

@benwandrew benwandrew left a comment

Choose a reason for hiding this comment

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

looks good to me!

The discovery problem is defined by a single independent variable $x \in [0, 2 \pi]$ and dependent variable $y$.
The experiment amounts to a simple sine wave, $y = \sin(x)$, which is the model we are trying to discover.

Th discovery cycle iterates between the experimentalist, experiment runner, and theorist. Here, we us a "random" experimentalist, which samples novel experimental conditions for $x$ every cycle.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo: Th -> The

Before installing the PyPI ``autora`` package, you may [activate your environment](https://autoresearch.github.io/autora/contribute/setup/#activating-and-using-the-environment). To install the PyPI `autora` package, run the following command:

```shell
pip install "autora"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does autora need to be in quotes here? This is not the normal from my experience.

Th discovery cycle iterates between the experimentalist, experiment runner, and theorist. Here, we us a "random" experimentalist, which samples novel experimental conditions for $x$ every cycle.
The experiment runner then collects data for the corresponding $y$ values. Finally, the theorist uses a [Bayesian Machine Scientist](https://autoresearch.github.io/autora/user-guide/theorists/bms/) (BMS; Guimerà et al., in Science Advances) to identify a scientific model that explains the data.

The workflow relies on the ``StandardState`` object, which stores the current state of the discovery process, such as ``conditions``, ``experiment_data``, or ``models``. The state is passed between the experimentalist, experiment runner, and theorist.
Copy link
Collaborator

@chadcwilliams chadcwilliams Nov 30, 2023

Choose a reason for hiding this comment

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

I would say
"such as conditions, experiment_data, or models"
should be
"such as conditions, experiment_data, and models"

print('\n')

for i in range(5):
s = experimentalist(s, num_samples=10, random_state=42)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is my error, sorry!

I would change the random state in both experimentalist and experiment_runner from random_state=42 to random_state=42+i because the former would use the same random state every cycle.

Copy link
Collaborator

@chadcwilliams chadcwilliams left a comment

Choose a reason for hiding this comment

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

Looks good! I have a handful of comments but they are all minor things like typos.

@musslick musslick added this pull request to the merge queue Dec 6, 2023
Merged via the queue into main with commit f45e9d5 Dec 6, 2023
15 checks passed
@musslick musslick deleted the doc/readme-update branch December 6, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: Add to README.md basic installation instructions, minimum example, link to contribution guidelines.
3 participants