Skip to content

Commit

Permalink
Changed sindy optuna hyper parameter function to use types for featur…
Browse files Browse the repository at this point in the history
…e library.
  • Loading branch information
djpasseyjr committed Jan 15, 2025
1 parent b46a1ab commit bab0fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interfere/_methods/sindy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


# Lists of hyper parameters for optimization.
SINDY_LIB_LIST = [ps.PolynomialLibrary(), ps.FourierLibrary()]
SINDY_LIB_LIST = [ps.PolynomialLibrary, ps.FourierLibrary]

SINDY_DIFF_LIST = [
ps.SINDyDerivative(kind='finite_difference', k=1),
Expand Down Expand Up @@ -44,7 +44,7 @@ def __init__(self,
# Optionally accept types for feature library.
if isinstance(feature_library, type):
feature_library = feature_library()

# Differentiation method and feature library must be copied so that
# their internal state doesn't carry over across different fits.
if differentiation_method is not None:
Expand Down

0 comments on commit bab0fdf

Please sign in to comment.