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 ) ; }
Updates the weights by applying the ElasticNet regularization .