code: 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;
      }
docs: Estimates the penalty by adding the ElasticNet regularization.
  
  @param l1
  @param l2
  @param weights
  @param <K>
  @return