-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
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.
desanou
Metadata
Metadata
Assignees
Labels
No labels