Skip to content

API: Minimizer #1

@jonas-eschle

Description

@jonas-eschle

Discussion for an optimal minimizer interface to be used for likelihood (-like) minimization tasks.

Questions

Statefullness

Should the minimizer be stateful or not or both (e.g. within a context)? A stateful minimizer has the advantage of enabling a simple way of fine-grained minimization control which alternatively has to be done via arguments to the minimize function. However, it requires to create a new minimizer for every minimization and the minimization procedure cannot be simply replicated (while if it's stateless, it's always a simple call to minimize).

API

minimize(loss, params)

minimize the loss fully using the given params. Return a FitResult.

minimize_step

minimize a single step, can be not implemented.

Returned result

What is the best result to be returned? a FitResult, but maybe just a minimal API is fine?

Metadata

Metadata

Assignees

No one assigned

    Labels

    API discussionDefinition of API and discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions