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

Built-in utilities for parameter fitting #86

Open
kach opened this issue Jan 31, 2025 · 1 comment
Open

Built-in utilities for parameter fitting #86

kach opened this issue Jan 31, 2025 · 1 comment

Comments

@kach
Copy link
Owner

kach commented Jan 31, 2025

We already have examples/recipes, but it could be even easier for people if there were built-in utilities:

@memo
def f(alpha, beta): ...

f.grid_search(
  loss=lambda pred: …,
  grid=(np.linspace(…), np.linspace(…), …)
)

f.gradient_fit(
  loss=lambda pred: …,
  init=(0, 0.5),
  step_size=…,
  num_iterations=…
)
@kach
Copy link
Owner Author

kach commented Feb 13, 2025

More thoughts: could use type hints on params to specify ranges. Could also automatically generate Jupyter widgets for interaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant