Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
KindXiaoming committed Apr 29, 2024
1 parent f983f96 commit b5da1c0
Show file tree
Hide file tree
Showing 22 changed files with 38 additions and 10 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = ["sphinx_rtd_theme",
"sphinx.ext.autodoc"
"sphinx.ext.autodoc",
"sphinx.ext.autosectionlabel"
]

templates_path = ['_templates']
Expand Down
2 changes: 2 additions & 0 deletions docs/demos.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _api-demo:

API Demos
---------

Expand Down
2 changes: 2 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _examples:

Examples
--------

Expand Down
35 changes: 27 additions & 8 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@
Welcome to Kolmogorov Aarnold Network (KAN) documentation!
==========================================================

This documentation is for the paper "KAN: Kolmogorov-Arnold Networks" and the github repo can be found here.

.. image:: kan_plot.png

This documentation is for the paper "KAN: Kolmogorov-Arnold Networks" and the github repo can be found here.
Kolmogorov-Arnold Networks, inspired by the Kolmogorov-Arnold representation theorem, are promising alternatives
of Multi-Layer Preceptrons (MLPs). KANs have activation functions on edges, whereas MLPs have activation functions on nodes.
This simple change makes KAN better than MLPs in terms of both accuracy and interpretability.

Get the latest news at `CNN`_. (Add links to paper and github repo)

.. _CNN: http://cnn.com/

There are two ways to install kan. The first way is via pip install

.. code-block:: python
Installation
------------

pip install pykan
The second way is via github
Installation via github
~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: python
Expand All @@ -29,6 +30,24 @@ The second way is via github
pip install -e .
# pip install -r requirements.txt # install requirements
Installation via PyPI (soon)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: python
pip install pykan
Get started
-----------

* Quickstart: :ref:`hello-kan`
* KANs in Action: :ref:`api-demo`, :ref:`examples`
* API (advanced): :ref:`api`.



.. toctree::
:maxdepth: 1
:caption: Contents:
Expand Down
2 changes: 2 additions & 0 deletions docs/intro.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _hello-kan:

Hello, KAN!
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/modules.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _api:

API
===

Expand Down
Binary file modified figures/sp_0_0_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_0_0_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_0_0_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_0_0_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_0_0_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_0_1_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_0_1_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_0_1_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_0_1_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_0_1_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_1_0_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_1_1_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_1_2_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_1_3_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/sp_1_4_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
matplotlib==3.6.2
moviepy==1.0.3
numpy==1.26.4
numpy==1.24.4
scikit_learn==1.1.3
setuptools==65.5.0
sphinx_rtd_theme==2.0.0
Expand Down

0 comments on commit b5da1c0

Please sign in to comment.