public LinearClassifier<L, F> trainClassifierWithInitialWeights(
     GeneralDataset<L, F> dataset, LinearClassifier<L, F> initialClassifier) {
   double[][] initialWeights2D = (initialClassifier != null) ? initialClassifier.weights() : null;
   return trainClassifierWithInitialWeights(dataset, initialWeights2D);
 }