You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I came across this package and am really impressed! I was wondering how difficult it would be to add new penalty terms.
I know that pyGAM has constraints for the curvature being larger (convex) or smaller (concave) than zero. Would it be possible to constrain the curvature to be larger than a certain pre-specified value?
In general, is there an intuitive answer as to why the penalty is computes in the same way, but with a different derivative for both cases? Would it be possible specify any rejection criteria for the mask and still have the pyGAM code work?
D = sparse_diff(sp.sparse.identity(n).tocsc(), n=derivative) * mask
penalty = D.dot(D.T).tocsc()
The text was updated successfully, but these errors were encountered:
Hi,
I came across this package and am really impressed! I was wondering how difficult it would be to add new penalty terms.
I know that pyGAM has constraints for the curvature being larger (convex) or smaller (concave) than zero. Would it be possible to constrain the curvature to be larger than a certain pre-specified value?
pyGAM/pygam/penalties.py
Line 170 in b57b4cf
I have the same question for monotonicity.
pyGAM/pygam/penalties.py
Line 99 in b57b4cf
In general, is there an intuitive answer as to why the penalty is computes in the same way, but with a different derivative for both cases? Would it be possible specify any rejection criteria for the mask and still have the pyGAM code work?
D = sparse_diff(sp.sparse.identity(n).tocsc(), n=derivative) * mask
penalty = D.dot(D.T).tocsc()
The text was updated successfully, but these errors were encountered: