Skip to content

Commit

Permalink
clean up for sepes 0.12 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ASEM000 authored Apr 2, 2024
1 parent 533d390 commit d3b2389
Show file tree
Hide file tree
Showing 33 changed files with 614 additions and 1,142 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install graphviz graphviz-dev
sudo apt install -y pandoc
python -m pip install --upgrade pip
pip install .
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install sepes>=0.10.0
python -m pip install keras_nightly==3.0.0.dev2023110103
python -m pip install sepes>=0.12.0
python -m pip install keras>=0.3.0
python -m pip install scikit-learn
python -m pip install pytest wheel optax jaxlib coverage kernex
python -m pip install pytest wheel optax jaxlib coverage
- name: Pytest Check
run: |
python -m pip install .
Expand Down
5 changes: 0 additions & 5 deletions docs/API/activations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ Activations
---------------------------------
.. currentmodule:: serket.nn

.. autoclass:: AdaptiveLeakyReLU
.. autoclass:: AdaptiveReLU
.. autoclass:: AdaptiveSigmoid
.. autoclass:: AdaptiveTanh
.. autoclass:: CeLU
.. autoclass:: ELU
.. autoclass:: GELU
Expand All @@ -28,7 +24,6 @@ Activations
.. autoclass:: SoftSign
.. autoclass:: SquarePlus
.. autoclass:: Swish
.. autoclass:: Snake
.. autoclass:: Tanh
.. autoclass:: TanhShrink
.. autoclass:: ThresholdedReLU
2 changes: 0 additions & 2 deletions docs/API/common.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

.. autofunction:: tree_state
.. autofunction:: tree_eval
.. autofunction:: def_init_entry
.. autofunction:: def_act_entry

.. autoclass:: Sequential
.. autoclass:: RandomChoice
10 changes: 10 additions & 0 deletions docs/API/constructor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
🏗️ Constructor utils API
=============================


.. currentmodule:: serket

.. autofunction:: field
.. autofunction:: fields
.. autofunction:: autoinit
.. autofunction:: leafwise
31 changes: 0 additions & 31 deletions docs/API/core.rst

This file was deleted.

4 changes: 3 additions & 1 deletion docs/API/linear.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ Linear
.. autoclass:: Linear
.. autoclass:: Identity
.. autoclass:: Embedding
.. autoclass:: MLP
.. autoclass:: MLP

.. autofunction:: linear
5 changes: 1 addition & 4 deletions docs/API/masking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

.. currentmodule:: serket

.. autofunction:: is_nondiff
.. autofunction:: freeze
.. autofunction:: unfreeze
.. autofunction:: is_frozen
.. autofunction:: is_masked
.. autofunction:: tree_mask
.. autofunction:: tree_unmask
10 changes: 10 additions & 0 deletions docs/API/module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
📍 Module API
=============================


.. currentmodule:: serket

.. autoclass:: TreeClass
:members:
at

2 changes: 0 additions & 2 deletions docs/API/pretty_print.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
.. currentmodule:: serket

.. autofunction:: tree_diagram
.. autofunction:: tree_graph
.. autofunction:: tree_mermaid
.. autofunction:: tree_repr
.. autofunction:: tree_str
.. autofunction:: tree_summary
2 changes: 1 addition & 1 deletion docs/API/recurrent.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Recurrent
.. autoclass:: LSTMCell
.. autoclass:: GRUCell
.. autoclass:: SimpleRNNCell
.. autoclass:: DenseCell
.. autoclass:: LinearCell

.. autoclass:: ConvLSTM1DCell
.. autoclass:: ConvLSTM2DCell
Expand Down
8 changes: 5 additions & 3 deletions docs/API/sepes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
=============================

.. note::
`sepes <https://sepes.readthedocs.io/en/latest/?badge=latest>`_ API is fully re-exported under the ``serket`` namespace.
`Check the docs <https://sepes.readthedocs.io/en/latest/?badge=latest>`_ for full details.
`sepes <https://sepes.readthedocs.io/>`_ API is fully re-exported under the ``serket`` namespace.
`Check the docs <https://sepes.readthedocs.io/>`_ for full details.

.. toctree::
:maxdepth: 2
:caption: API Documentation

core
module
masking
tree
constructor
pretty_print
17 changes: 17 additions & 0 deletions docs/API/tree.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
🌲 Tree utils API
=============================


.. currentmodule:: serket

.. autoclass:: at
:members:
get,
set,
apply,
scan,
reduce,
pluck,

.. autofunction:: value_and_tree
.. autofunction:: bcmap
Loading

0 comments on commit d3b2389

Please sign in to comment.