Skip to content

Issue with class Gamma #188

Closed
Closed
@anthonybritto

Description

@anthonybritto

I'm trying to construct the following model:

mod = GeneralizedLinearEstimator(Gamma(), skg.penalties.L1(alpha=0.5))

However, when I run mod.fit(exog, endog) I am met with

AttributeError: 'Gamma' object has no attribute 'intercept_update_step'

Looking at the documentation, I wonder if this is due a simple typo: I see that Gamma has the method intercept_update_self defined; should this be intercept_update_step instead?

Is there a possible workaround for now? I naively tried to define

g = Gamma()
g.intercept_update_step = g.intercept_update_self

but the error persists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions