-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: module 'regreg.api' has no attribute 'quadratic' #51
Comments
You might want `rr.quadratic_loss` ?
Not sure what you expect with a `shift` method. What loss are you trying to create?
…________________________________
From: ChingzhiWU <notifications@github.com>
Sent: Tuesday, December 17, 2019 5:02 AM
To: regreg/regreg <regreg@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [regreg/regreg] Question: module 'regreg.api' has no attribute 'quadratic' (#51)
Dear, My environment:
windows 10
Python 3.67
Anaconda3
scipy 1.3.3
regreg 0.1.3 pypi_0 pypi
and after I run this line
loss = rr.quadratic.shift(-Ic,coef=0.5)
the error messages are:
AttributeError Traceback (most recent call last)
in
----> 1 loss = rr.quadratic.shift(-Ic,coef=0.5)
AttributeError: module 'regreg.api' has no attribute 'quadratic'
How to solve this problem? Many thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#51?email_source=notifications&email_token=AACTM2363KV4A6ARO6NN6KLQZDEVJA5CNFSM4J33DEVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IBBJHFQ>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AACTM267TVL7LLUZZCMULITQZDEVJANCNFSM4J33DEVA>.
|
Dear Prof. Jonathan Taylor, Many Thanks. Actually, I want to try to run this website example. http://statweb.stanford.edu/~bjk/regreg/examples/fusedlassoapprox.html#fusedlassoapprox Code: import regreg.api as R Y = np.random.standard_normal(500); Y[100:150] += 7; Y[250:300] += 14 sparsity = R.l1norm(500, lagrange=1.3) loss = R.quadratic.shift(-Y) problem = R.container(loss, sparsity, fused) #plot solution the error messages are:AttributeError Traceback (most recent call last) AttributeError: module 'regreg.api' has no attribute 'quadratic' How to solve this problem? Many thanks! |
Dear, My environment:
windows 10
Python 3.67
Anaconda3
scipy 1.3.3
regreg 0.1.3 pypi_0 pypi
and after I run this line
loss = rr.quadratic.shift(-Ic,coef=0.5)
the error messages are:
AttributeError Traceback (most recent call last)
in
----> 1 loss = rr.quadratic.shift(-Ic,coef=0.5)
AttributeError: module 'regreg.api' has no attribute 'quadratic'
How to solve this problem? Many thanks!
The text was updated successfully, but these errors were encountered: