Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed typos #182

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kan/KANLayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class KANLayer(nn.Module):
scale_base: 1D torch.float
magnitude of the residual function b(x)
scale_sp: 1D torch.float
mangitude of the spline function spline(x)
magnitude of the spline function spline(x)
base_fun: fun
residual function b(x)
mask: 1D torch.float
Expand Down
4 changes: 2 additions & 2 deletions kan/spline.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def B_batch(x, grid, k=0, extend=True, device='cpu'):
Returns:
--------
spline values : 3D torch.tensor
shape (number of splines, number of B-spline bases (coeffcients), number of samples). The numbef of B-spline bases = number of grid points + k - 1.
shape (number of splines, number of B-spline bases (coefficients), number of samples). The number of B-spline bases = number of grid points + k - 1.

Example
-------
Expand Down Expand Up @@ -119,7 +119,7 @@ def curve2coef(x_eval, y_eval, grid, k, device="cpu"):
k : int
the piecewise polynomial order of splines.
device : str
devicde
device

Example
-------
Expand Down