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

Version 2 #222

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
02abdc1
Started on molnets chapter
whitead Oct 20, 2022
2b50703
Fixed inserted figure
whitead Oct 25, 2022
ba4060a
Fixed GNN equiv/invar issues
whitead Oct 26, 2022
cff58eb
Merge branch 'master' of github.com:whitead/ml-mol-class into molnets
whitead Nov 4, 2022
eb951d4
doing this for ma boi
whitead Nov 4, 2022
625f297
Merge branch 'molnets' of github.com:whitead/ml-mol-class into molnets
whitead Nov 5, 2022
cfa88fb
Added citation for schnet critique
whitead Nov 13, 2022
c92b58e
Some progress on drawing
whitead Nov 23, 2022
c9ca94c
Added more exercises
whitead Dec 5, 2022
5cd1f7e
Merge branch 'master' of github.com:whitead/ml-mol-class into molnets
whitead Dec 5, 2022
c939fce
More progress on molnet animation
whitead Dec 5, 2022
c474016
Removed disables
whitead Dec 5, 2022
1c983de
Incremented version and added changelog notes
whitead Dec 5, 2022
542116e
Merge branch 'master' of github.com:whitead/ml-mol-class into molnets
whitead Dec 14, 2022
0f7991d
Fixed alt texts
whitead Dec 14, 2022
aebf897
Merge branch 'main' into v2
whitead Dec 14, 2022
a1f65a3
Merge branch 'main' of github.com:whitead/ml-mol-class into v2
whitead Dec 18, 2022
be22180
Completed first draft of animation
whitead Dec 20, 2022
91fd0d4
Merge branch 'v2' of github.com:whitead/ml-mol-class into v2
whitead Dec 20, 2022
814dc8c
Fixed np type error
whitead Dec 20, 2022
d9c5398
Will keep_files now
whitead Dec 20, 2022
a7c0057
Merge branch 'main' of github.com:whitead/ml-mol-class into v2
whitead Dec 22, 2022
a929dc7
Added notes to animation and slowed it down
whitead Dec 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/deploy-jupyter-book-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: deploy-book

# Only run this on PRs
on:
pull_request:
branches: [ main ]

workflow_dispatch:

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:

deploy-book:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
with:
python-version: 3.8

- name: Install dependencies
run: |
conda install -c conda-forge pygraphviz
cd package && python -m pip --use-deprecated=legacy-resolver --no-cache-dir install .
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.12.0+cpu.html
- name: Build dmol-book package
run: |
pip install build
cd package && python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
continue-on-error: true
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: package/dist/
- name: Build the book
run: env TF_CPP_MIN_LOG_LEVEL=3 jupyter-book build .
- name: Deploy Jupyter book to GitHub pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
#force_orphan: true
keep_files: true
destination_dir: ${{ steps.myref.outputs.branch }}
cname: dmol.pub
2 changes: 2 additions & 0 deletions .github/workflows/deploy-jupyter-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
force_orphan: true
#keep_files: true
cname: dmol.pub
destination_dir: latest
8 changes: 4 additions & 4 deletions dl/gnn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,14 @@
"name: gcnanim\n",
"alt: animation of the graph convolution layer operation\n",
"----\n",
"Animation of the graph convolution layer operation. The left is input, right is output node features. Note that two layers are shown (see title change). As the animation plays out, you can see how the information about the atoms propagates through the molecule via the averaging over neigbhors. So the oxygen goes from being just an oxygen, to an oxygen bonded to C and H, to an oxygen bonded to an H and CH3. The colors just reflect the same information in the numerical values.\n",
"Animation of the graph convolution layer operation. The left is input, right is output node features. Note that two layers are shown (see title change). As the animation plays out, you can see how the information about the atoms propagates through the molecule via the averaging over neighbors. So the oxygen goes from being just an oxygen, to an oxygen bonded to C and H, to an oxygen bonded to an H and CH3. The colors just reflect the same information in the numerical values.\n",
"```\n",
"\n",
"\n",
"### GCN Implementation\n",
"\n",
"Let's now create a tensor implementation of the GCN. We'll skip the activation and trainable weights for now.\n",
"We must first compute our rank 2 adjacency matrix. The `smiles2graph` code above computes an adjacency tensor with feature vectors. We can fix that with a simple reduction and add the identity at the same time\n"
"We must first compute our rank 2 adjacency matrix. The `smiles2graph` code above computes an adjacency tensor with feature vectors. We can fix that with a simple reduction and add the identity at the same time"
]
},
{
Expand Down Expand Up @@ -1819,7 +1819,7 @@
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3.7.8 64-bit",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1833,7 +1833,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.8"
"version": "3.8.12"
},
"vscode": {
"interpreter": {
Expand Down
Loading