Skip to content

Error in linear regression #2

Open
@karthy257

Description

@karthy257

Hi,

I am interested in your package combining Bayesian analysis and machine learning approach. I just ran your code for linear regression from your examples section. I got this error "NameError: name '_ChangeFlagsDecorator' is not defined".
I understand the type of error, but I don't understand the reason behind the error. Kindly guide me through the process.
Thanks.
Code:

`model = LinearRegression()
model.fit(X_train, y_train)
Traceback (most recent call last):

File "", line 1, in
model.fit(X_train, y_train)

File "C:\ProgramData\Anaconda3\lib\site-packages\pmlearn\base.py", line 236, in fit
self.cached_model = self.create_model()

File "C:\ProgramData\Anaconda3\lib\site-packages\pmlearn\linear_model\base.py", line 181, in create_model
model = pm.Model()

File "C:\ProgramData\Anaconda3\lib\site-packages\pymc3\model.py", line 386, in call
with instance: # appends context

File "C:\ProgramData\Anaconda3\lib\site-packages\pymc3\model.py", line 287, in enter
self._config_context = theano.config.change_flags(**self._theano_config)

File "C:\ProgramData\Anaconda3\lib\site-packages\theano\configparser.py", line 251, in change_flags

NameError: name '_ChangeFlagsDecorator' is not defined`

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