code: public static <K> void updateWeights(double l1, double l2, double learningRate, Map<K, Double> weights, Map<K, Double> newWeights) {
          L2Regularizer.updateWeights(l2, learningRate, weights, newWeights);
          L1Regularizer.updateWeights(l1, learningRate, weights, newWeights);
      }
docs: Updates the weights by applying the ElasticNet regularization.
  
  @param l1
  @param l2
  @param learningRate
  @param weights
  @param newWeights
  @param <K>