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

Add plots to tutorials #25

Merged
merged 3 commits into from
Dec 17, 2021
Merged

Add plots to tutorials #25

merged 3 commits into from
Dec 17, 2021

Conversation

bamos
Copy link
Contributor

@bamos bamos commented Dec 12, 2021

This PR adds some plots to tutorials 1 and 2 to help visualize the data and functions that are being learned, e.g:
image

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 12, 2021
@mhmukadam mhmukadam added this to the 0.1.0-b.2 milestone Dec 17, 2021
@mhmukadam mhmukadam added the documentation Improvements or additions to documentation label Dec 17, 2021
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/mukadam/opt/anaconda3/envs/theseus/lib/python3.7/site-packages/theseus/optimizer/nonlinear/nonlinear_optimizer.py:191: RuntimeWarning: There was an error while running the linear optimizer. Original error message: cholesky_cpu: For batch 0: U(1,1) is zero, singular U..\n",
Copy link
Member

@mhmukadam mhmukadam Dec 17, 2021

Choose a reason for hiding this comment

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

There seems to be a weird behavior when running T1 with python 3.7 where the optimization is singular, so step 3 and robust curve fitting don't succeed. This issue goes away when run on python 3.8.

For now I reran both T1 and T2 with 3.8. We should look into this in a separate PR, @luisenp @vshobha.

Copy link
Member

@mhmukadam mhmukadam 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. Thanks for adding the visualizations, @bamos.

@bamos bamos merged commit 50a7556 into main Dec 17, 2021
@mhmukadam mhmukadam deleted the bda.2021.12.11.tutorial-vis branch December 17, 2021 18:25
suddhu pushed a commit to suddhu/theseus that referenced this pull request Jan 21, 2023
* Add plots to tutorials

* add semicolon to stop spurious matplotlib prints; fix typo; rerun all cells

* rerun tutorials 1 and 2 with python 3.8

Co-authored-by: Mustafa Mukadam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants