Skip to content

Duplicated initial_point method #6290

@williambdean

Description

@williambdean

Description of your problem

The initial_point method for the Model class shows up twice.

pymc/pymc/model.py

Lines 998 to 1007 in 5d7283e

def initial_point(self, seed=None) -> Dict[str, np.ndarray]:
"""Computes the initial point of the model.
Returns
-------
ip : dict
Maps names of transformed variables to numeric initial values in the transformed space.
"""
fn = make_initial_point_fn(model=self, return_transformed=True)
return Point(fn(seed), model=self)

pymc/pymc/model.py

Lines 1262 to 1271 in 5d7283e

def initial_point(self, seed=None) -> Dict[str, np.ndarray]:
"""Computes the initial point of the model.
Returns
-------
ip : dict
Maps names of transformed variables to numeric initial values in the transformed space.
"""
fn = make_initial_point_fn(model=self, return_transformed=True)
return Point(fn(seed), model=self)

Please provide any additional information below.

Seems to be a mistake.

Another side note, the seed parameter seems to be inconsistent with many of the other methods using random_seed named argument.

Versions and main components

  • PyMC/PyMC3 Version: 4.3.0
  • Aesara/Theano Version:
  • Python Version:
  • Operating system:
  • How did you install PyMC/PyMC3: (conda/pip)

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