Skip to content

Commit

Permalink
add __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KindXiaoming committed Nov 13, 2024
1 parent 9cbb8d6 commit c5ebd60
Show file tree
Hide file tree
Showing 19 changed files with 884 additions and 36 deletions.
21 changes: 21 additions & 0 deletions .ipynb_checkpoints/LICENSE-checkpoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Ziming Liu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Empty file.
4 changes: 2 additions & 2 deletions .ipynb_checkpoints/hellokan-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"cuda\n",
"cpu\n",
"checkpoint directory created: ./model\n",
"saving model version 0.0\n"
]
Expand Down Expand Up @@ -528,7 +528,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down
31 changes: 31 additions & 0 deletions .ipynb_checkpoints/setup-checkpoint.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import setuptools

# Load the long_description from README.md
with open("README.md", "r", encoding="utf8") as fh:
long_description = fh.read()

setuptools.setup(
name="pykan",
version="0.2.7",
author="Ziming Liu",
author_email="[email protected]",
description="Kolmogorov Arnold Networks",
long_description=long_description,
long_description_content_type="text/markdown",
# url="https://github.com/kindxiaoming/",
packages=setuptools.find_packages(),
include_package_data=True,
package_data={
'pykan': [
'figures/lock.png',
'assets/img/sum_symbol.png',
'assets/img/mult_symbol.png',
],
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)
Empty file added __init__.py
Empty file.
4 changes: 2 additions & 2 deletions hellokan.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"cuda\n",
"cpu\n",
"checkpoint directory created: ./model\n",
"saving model version 0.0\n"
]
Expand Down Expand Up @@ -528,7 +528,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down
Binary file added model/0.0_cache_data
Binary file not shown.
41 changes: 41 additions & 0 deletions model/0.0_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
affine_trainable: false
auto_save: true
base_fun_name: silu
ckpt_path: ./model
device: cpu
grid: 3
grid_eps: 0.02
grid_range:
- -1
- 1
k: 3
mult_arity: 2
round: 0
sb_trainable: true
sp_trainable: true
state_id: 0
symbolic.funs_name.0:
- - '0'
- '0'
- - '0'
- '0'
- - '0'
- '0'
- - '0'
- '0'
- - '0'
- '0'
symbolic.funs_name.1:
- - '0'
- '0'
- '0'
- '0'
- '0'
symbolic_enabled: true
width:
- - 2
- 0
- - 5
- 0
- - 1
- 0
Binary file added model/0.0_state
Binary file not shown.
2 changes: 2 additions & 0 deletions model/history.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Round 0 ###
init => 0.0
2 changes: 1 addition & 1 deletion pykan.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pykan
Version: 0.2.6
Version: 0.2.7
Summary: Kolmogorov Arnold Networks
Author: Ziming Liu
Author-email: [email protected]
Expand Down
Loading

0 comments on commit c5ebd60

Please sign in to comment.