@Override
    public void fit(Dataframe trainingData) {
        Set<TypeInference.DataType> supportedXDataTypes = getSupportedXDataTypes();
        for(TypeInference.DataType d : trainingData.getXDataTypes().values()) {
            if(!supportedXDataTypes.contains(d)) {
                throw new IllegalArgumentException("A DataType that is not supported by this method was detected in the Dataframe.");
            }
        }
        super.fit(trainingData);
    }
@ Override public void fit ( Dataframe trainingData ) { Set < TypeInference . DataType > supportedXDataTypes = getSupportedXDataTypes ( ) ; for ( TypeInference . DataType d : trainingData . getXDataTypes ( ) . values ( ) ) { if ( ! supportedXDataTypes . contains ( d ) ) { throw new IllegalArgumentException ( "A DataType that is not supported by this method was detected in the Dataframe." ) ; } } super . fit ( trainingData ) ; }
{@inheritDoc}