Skip to content

Design: Parameter classes for general nonlinear models? #2636

Open

Description

@josef-pkt

(Just a vague idea about how this can be incorporated in a generic way.)

Kerby uses parameter classes in several model, mainly to handle various transformations.
mlefit uses parameter classes including starting values and bounds
various mcmc packages all require predefined parameters (with prior distributional assumptions)

Should we go into this in a generic systematic way?

use cases

  • nonlinear least squares, and MLE for nonlinear prediction function - similar to mlefit
  • generically support distributions estimation with multiple parameters - e.g. a MLE wrapper around scipy.stats.distributions
  • generic estimators like GMM with arbitrary nonlinear moment conditions, estimating equations
  • modular way to impose constraints on parameters

requirements

  • link function: explicitly given by users not defaults based on bounds as mlefit
  • constraints: set some params to a fixed value during optimization, attach transform_params to the parameter class
  • linear predictor: we don't want to just have scalar parameters, but defining linear, or even nonlinear predictors for the parameter (similar to expectation mu in GLM, and two parameters in beta regression, ZIP, ...)

partially going into the direction of R's GAMLSS and of mlefit at the same time

some of it would just be outsourcing the transform_params that are currently used.
For single parameter models it will be overkill, i.e. unnecessary complexity.

Activity

  1. josef-pkt commented on Oct 2, 2015

    @josef-pkt
    MemberAuthor

    special usecase: How can we get a GenericLikelihoodModel extension where we just have to specify which scipy.stats distribution we want?
    (aside in many cases a reparameterization is frequently used)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions