code: @Override
      public void fit(Dataframe trainingData) {
          Set<TypeInference.DataType> supportedYDataTypes = getSupportedYDataTypes();
          if(supportedYDataTypes != null && !supportedYDataTypes.contains(trainingData.getYDataType())) {
              throw new IllegalArgumentException("The response variable DataType of the Dataframe is not supported by this method.");
          }
          super.fit(trainingData);
      }
docs: {@inheritDoc}