Skip to content

Commit 56fe623

Browse files
authored
Merge pull request #532 from neurodata/staging
ENH add new experiment notebooks & DOC update documentation for algorithm names
2 parents 31b0f3d + f2afc14 commit 56fe623

40 files changed

+4801
-212
lines changed

Diff for: .circleci/config.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- checkout
1515
- restore_cache:
16-
key: v1-<< parameters.version >>-min-dependency-cache-{{ checksum "dev-requirements.txt" }}
16+
key: v2-<< parameters.version >>-min-dependency-cache-{{ checksum "dev-requirements.txt" }}
1717
- run:
1818
name: install python dependencies
1919
command: |
@@ -22,7 +22,7 @@ jobs:
2222
pip install --upgrade pip
2323
pip install -r dev-requirements.txt
2424
- save_cache:
25-
key: v1-<< parameters.version >>-min-dependency-cache-{{ checksum "dev-requirements.txt" }}
25+
key: v2-<< parameters.version >>-min-dependency-cache-{{ checksum "dev-requirements.txt" }}
2626
paths:
2727
- "venv"
2828
- run:
@@ -41,11 +41,11 @@ jobs:
4141
tutorials:
4242
type: string
4343
docker:
44-
- image: cimg/python:3.8
44+
- image: cimg/python:3.9
4545
steps:
4646
- checkout
4747
- restore_cache:
48-
key: v1-3.8-dependency-cache-{{ checksum "dev-requirements.txt" }}
48+
key: v2-3.9-dependency-cache-{{ checksum "dev-requirements.txt" }}
4949
- run:
5050
name: install python dependencies
5151
command: |
@@ -54,7 +54,7 @@ jobs:
5454
pip install -r dev-requirements.txt
5555
pip install -e .
5656
- save_cache:
57-
key: v1-3.8-dependency-cache-{{ checksum "dev-requirements.txt" }}
57+
key: v2-3.9-dependency-cache-{{ checksum "dev-requirements.txt" }}
5858
paths:
5959
- "venv"
6060
- run:
@@ -78,11 +78,11 @@ jobs:
7878
file: "coverage.xml"
7979
deploy:
8080
docker:
81-
- image: cimg/python:3.8
81+
- image: cimg/python:3.9
8282
steps:
8383
- checkout
8484
- restore_cache:
85-
key: v1-3.8-dependency-cache-{{ checksum "dev-requirements.txt" }}
85+
key: v2-3.9-dependency-cache-{{ checksum "dev-requirements.txt" }}
8686
- run:
8787
name: install python dependencies
8888
command: |
@@ -91,7 +91,7 @@ jobs:
9191
pip install -r dev-requirements.txt
9292
pip install -e .
9393
- save_cache:
94-
key: v1-3.8-dependency-cache-{{ checksum "dev-requirements.txt" }}
94+
key: v2-3.9-dependency-cache-{{ checksum "dev-requirements.txt" }}
9595
paths:
9696
- "venv"
9797
- run:
@@ -127,14 +127,17 @@ workflows:
127127
- build:
128128
name: "v3.8"
129129
version: "3.8"
130+
- build:
131+
name: "v3.9"
132+
version: "3.9"
130133
- test-module:
131134
name: "proglearn"
132135
module: "proglearn"
133136
benchmarks: "benchmarks/"
134137
experiments: "docs/experiments/"
135138
tutorials: "docs/tutorials/"
136139
requires:
137-
- "v3.8"
140+
- "v3.9"
138141
- deploy:
139142
filters:
140143
tags:

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/** -linguist-documentation

Diff for: dev-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
wheel
12
-r requirements.txt
23
pytest
34
coverage

Diff for: docs/contributing.rst

+7-2
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,16 @@ Properly formatted Jupyter notebooks are required for Netlify deployment.
191191
It is recommended to check that your tutorial completes the following
192192
steps before submitting:
193193

194+
- ``black`` format your notebook. Use the official
195+
``black[jupyter]`` `package <https://github.com/psf/black>`_.
196+
194197
- Add your notebook name to `docs/tutorials.rst
195-
</docs/tutorials.rst>`_ if applicable.
198+
</docs/tutorials.rst>`_ or `docs/experiments.rst
199+
</docs/experiments.rst>`_ if applicable.
196200

197201
- Organize local functions into a separate file and put it in
198-
`docs/tutorials/functions </docs/tutorials/functions>`_.
202+
`docs/tutorials/functions </docs/tutorials/functions>`_ or
203+
`docs/experiments/functions </docs/experiments/functions>`_.
199204
This function file and the notebook should have the same name.
200205

201206
- Make your tutorial self-contained if possible. It should neither

Diff for: docs/experiments.rst

+1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ The following experiments illustrate specific tests using the ``ProgLearn`` pack
1919
experiments/xor_rxor_exp
2020
experiments/xor_rxor_with_cpd
2121
experiments/xor_rxor_with_icp
22+
experiments/xor_rxor_with_unaware
2223
experiments/xor_xnor_exp
2324
experiments/double_descent_RF

0 commit comments

Comments
 (0)