Skip to content

Commit

Permalink
feat(API): export make_model()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Feb 19, 2024
1 parent 2557f81 commit fa78b92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gen_experiments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pysindy import BaseDifferentiation, FiniteDifference, SINDy # type: ignore

from . import gridsearch, odes, pdes
from .utils import SINDyTrialData
from .utils import SINDyTrialData, make_model # noqa: F401

this_module = importlib.import_module(__name__)
BORING_ARRAY = np.ones((2, 2), dtype=float)
Expand Down
4 changes: 3 additions & 1 deletion src/gen_experiments/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def opt_lookup(kind):
return ps.SR3
elif normalized_kind == "miosr":
return ps.MIOSR
elif normalized_kind == "trap":
return ps.TrappingSR3
elif normalized_kind == "ensemble":
return ps.EnsembleOptimizer
else:
Expand Down Expand Up @@ -207,7 +209,7 @@ def unionize_coeff_matrices(
return true_coeff_mat, new_est_coeff, model_features


def _make_model(
def make_model(
input_features: list[str],
dt: float,
diff_params: dict,
Expand Down

0 comments on commit fa78b92

Please sign in to comment.