public static < K > double estimatePenalty ( double l1 , double l2 , Map < K , Double > weights ) { double penalty = 0.0 ; penalty += L2Regularizer . estimatePenalty ( l2 , weights ) ; penalty += L1Regularizer . estimatePenalty ( l1 , weights ) ; return penalty ; }
Estimates the penalty by adding the ElasticNet regularization .