Skip to content

Commit

Permalink
Update example_Lotka_Volterra_fast_kan.py
Browse files Browse the repository at this point in the history
Change some parameters in fast kan model
  • Loading branch information
dimerf99 committed Aug 21, 2024
1 parent d6a9ab2 commit 45caad0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/example_Lotka_Volterra_fast_kan.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@
equation.add(eq2)

net = fastkan.FastKAN(
[1, 20, 20, 20, 20, 2],
grid_min=-10.,
grid_max=10.,
num_grids=2,
[1, 10, 10, 10, 2],
grid_min=-4.,
grid_max=4.,
num_grids=10,
use_base_update=True,
use_layernorm=False,
base_activation=F.tanh,
Expand All @@ -134,7 +134,7 @@

cb_plots = plot.Plots(save_every=1000, print_every=1000, img_dir=img_dir)

optimizer = Optimizer('Adam', {'lr': 5e-4})
optimizer = Optimizer('Adam', {'lr': 1e-4})

model.train(optimizer, 5e6, save_model=True, callbacks=[cb_es, cb_cache, cb_plots])

Expand Down

0 comments on commit 45caad0

Please sign in to comment.