Skip to content

Commit 8212b2d

Browse files
Adjust docstring example of b_batch function
1 parent 6bb93a7 commit 8212b2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytorch_forecasting/layers/_kan/_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ def b_batch(x, grid, k=0):
3737
pip install pykan
3838
Then use:
3939
40-
>>> from kan.spline import B_batch
40+
>>> from pytorch_forecasting.layers._kan._utils import b_batch
4141
>>> import torch
4242
>>> x = torch.rand(100, 2)
4343
>>> grid = torch.linspace(-1, 1, steps=11)[None, :].expand(2, 11)
44-
>>> B_batch(x, grid, k=3).shape
44+
>>> b_batch(x, grid, k=3).shape
45+
torch.Size([100, 2, 7])
4546
"""
4647

4748
x = x.unsqueeze(dim=2)

0 commit comments

Comments
 (0)