Skip to content

Commit c5ebd60

Browse files
committed
add __init__.py
1 parent 9cbb8d6 commit c5ebd60

19 files changed

+884
-36
lines changed

.ipynb_checkpoints/LICENSE-checkpoint

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Ziming Liu
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

.ipynb_checkpoints/__init__-checkpoint.py

Whitespace-only changes.

.ipynb_checkpoints/hellokan-checkpoint.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"name": "stdout",
120120
"output_type": "stream",
121121
"text": [
122-
"cuda\n",
122+
"cpu\n",
123123
"checkpoint directory created: ./model\n",
124124
"saving model version 0.0\n"
125125
]
@@ -528,7 +528,7 @@
528528
"name": "python",
529529
"nbconvert_exporter": "python",
530530
"pygments_lexer": "ipython3",
531-
"version": "3.9.16"
531+
"version": "3.10.12"
532532
}
533533
},
534534
"nbformat": 4,
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import setuptools
2+
3+
# Load the long_description from README.md
4+
with open("README.md", "r", encoding="utf8") as fh:
5+
long_description = fh.read()
6+
7+
setuptools.setup(
8+
name="pykan",
9+
version="0.2.7",
10+
author="Ziming Liu",
11+
author_email="[email protected]",
12+
description="Kolmogorov Arnold Networks",
13+
long_description=long_description,
14+
long_description_content_type="text/markdown",
15+
# url="https://github.com/kindxiaoming/",
16+
packages=setuptools.find_packages(),
17+
include_package_data=True,
18+
package_data={
19+
'pykan': [
20+
'figures/lock.png',
21+
'assets/img/sum_symbol.png',
22+
'assets/img/mult_symbol.png',
23+
],
24+
},
25+
classifiers=[
26+
"Programming Language :: Python :: 3",
27+
"License :: OSI Approved :: MIT License",
28+
"Operating System :: OS Independent",
29+
],
30+
python_requires='>=3.6',
31+
)

__init__.py

Whitespace-only changes.

hellokan.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"name": "stdout",
120120
"output_type": "stream",
121121
"text": [
122-
"cuda\n",
122+
"cpu\n",
123123
"checkpoint directory created: ./model\n",
124124
"saving model version 0.0\n"
125125
]
@@ -528,7 +528,7 @@
528528
"name": "python",
529529
"nbconvert_exporter": "python",
530530
"pygments_lexer": "ipython3",
531-
"version": "3.9.16"
531+
"version": "3.10.12"
532532
}
533533
},
534534
"nbformat": 4,

model/0.0_cache_data

355 Bytes
Binary file not shown.

model/0.0_config.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
affine_trainable: false
2+
auto_save: true
3+
base_fun_name: silu
4+
ckpt_path: ./model
5+
device: cpu
6+
grid: 3
7+
grid_eps: 0.02
8+
grid_range:
9+
- -1
10+
- 1
11+
k: 3
12+
mult_arity: 2
13+
round: 0
14+
sb_trainable: true
15+
sp_trainable: true
16+
state_id: 0
17+
symbolic.funs_name.0:
18+
- - '0'
19+
- '0'
20+
- - '0'
21+
- '0'
22+
- - '0'
23+
- '0'
24+
- - '0'
25+
- '0'
26+
- - '0'
27+
- '0'
28+
symbolic.funs_name.1:
29+
- - '0'
30+
- '0'
31+
- '0'
32+
- '0'
33+
- '0'
34+
symbolic_enabled: true
35+
width:
36+
- - 2
37+
- 0
38+
- - 5
39+
- 0
40+
- - 1
41+
- 0

model/0.0_state

8.08 KB
Binary file not shown.

model/history.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
### Round 0 ###
2+
init => 0.0

pykan.egg-info/PKG-INFO

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: pykan
3-
Version: 0.2.6
3+
Version: 0.2.7
44
Summary: Kolmogorov Arnold Networks
55
Author: Ziming Liu
66
Author-email: [email protected]

0 commit comments

Comments
 (0)