MCPcopy Create free account
hub / github.com/dmlc/parameter_server / ElasticNet

Method ElasticNet

src/app/linear_method/penalty.h:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28class ElasticNet : public Penalty<T> {
29 public:
30 ElasticNet(T lambda1, T lambda2) : lambda1_(lambda1), lambda2_(lambda2) {
31 CHECK_GE(lambda1, 0);
32 CHECK_GE(lambda2, 0);
33 }
34 ~ElasticNet() { }
35
36 T eval(const MatrixPtr<T>& model) { return 0; } // TODO

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected