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

add run! #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add run! #5

wants to merge 1 commit into from

Conversation

jbrea
Copy link
Collaborator

@jbrea jbrea commented Jun 26, 2020

I added a generic run! method with some docs. This is the one I thought we should extend in other packages. In #1 I named it fit! but I think it was a good point by eford to not call it like this...

@jbrea jbrea requested a review from francescoalemanno June 26, 2020 16:35
(m::Model)(params) = sum(params) + sum(m.options)
```
"""
function run!(method, model, data;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm starting to believe that maybe it is better not to talk about data at all, perhaps it is best to ask users to directly return a cost (or a vector of costs if it makes sense for some algorithms) in this way data could in principle change during inference in a user defined way, what do you think?

@jbrea jbrea mentioned this pull request Jun 27, 2020
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

Successfully merging this pull request may close these issues.

2 participants