Class FloatFeatureBuilder

    • Constructor Detail

      • FloatFeatureBuilder

        public FloatFeatureBuilder()
    • Method Detail

      • inferFromSample

        public void inferFromSample​(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> sampleDf,
                                    java.lang.String fieldName)
        Description copied from class: BaseFeatureBuilder
        Computes Feature attributes from the provided sample data, specifically Feature#uniqueCount and Feature#pctNull.
        Specified by:
        inferFromSample in interface FeatureBuilder
        Overrides:
        inferFromSample in class BaseFeatureBuilder
        Parameters:
        sampleDf - sample data to infer the Feature properties from
        fieldName - name of the field in the Dataset
      • getDataType

        public java.lang.String getDataType()
        Description copied from interface: FeatureBuilder
        String representation of the Spark DataType for the feature.
        Returns:
        String data type
      • getFeatureType

        public java.lang.String getFeatureType()
        Description copied from interface: FeatureBuilder
        String representation of the feature type in Cortex (e.g. "numeric", "categorical").
        Returns:
        String feature type