Skip to content

RuntimeWarning: Could not locate the config file. #33

@OsbertTay

Description

@OsbertTay

I have install pylearn-parsimony accordingly but when I run the example code for elastic net:

import parsimony.estimators as estimators
alpha = 0.1  # global penalty
l = 0.1  # l1 ratio (lasso)
enet_estimator = estimators.ElasticNet(l=l, alpha=alpha)
enet_estimator.fit(X, y)
print("Estimated beta error =", np.linalg.norm(enet_estimator.beta - beta))

It then returns:

/usr/local/lib/python3.6/dist-packages/pylearn_parsimony-0.3.1-py3.6.egg/parsimony/config.py:55: RuntimeWarning: Could not locate the config file.
Estimated beta error = 0.8064548347250173
/usr/local/lib/python3.6/dist-packages/pylearn_parsimony-0.3.1-py3.6.egg/parsimony/config.py:66: RuntimeWarning: Could not locate the config file.

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