This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small fixes on the tutorials (#1256)
Summary: Pull Request resolved: #1256 Changes in this diffs include: - `tutorials.md`: fixed the URL to the sparse logistic regression tutorial - I also verified that the actual tutorial runs fine on Colab :). - Linear Regression notebook: - `sklearn.model_selection` has to be imported explicitly - cast tensor to numpy before feeding it to `pandas` to avoid triggering: `TypeError: Index(...) must be called with a collection of some kind, tensor([4.]) was passed` - hierarchical modeling, hierarchical regression, item response theory, zero inflated count: they share the same issue of assuming that the utils package exist on a local path. They are fixed by importing from `beanmachine.tutorials.utils` instead - Hierarchical modeling tutorial has another issue with rendering svg using relative path. This is fixed by linking to the [svg image in our Github repo](https://raw.githubusercontent.com/facebookresearch/beanmachine/main/tutorials/assets/baseball/complete-pooling-dag.svg) instead - Item response theory also has an arviz plotting error (with bokh backend): `ValueError: failed to validate Title(id='6813', ...).text: expected a value of type str, got p(,) of type RVIdentifier`. I fixed this by explicitly cast the keys to string. allow-large-files Reviewed By: jpchen, neerajprad Differential Revision: D33052942 fbshipit-source-id: bcfae0fb3cbeaf1acae91d28d0fb3db3a9f4c73b
- Loading branch information
1 parent
eae9921
commit b9b8319
Showing
6 changed files
with
13 additions
and
16 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
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