Class BaseNFeature

java.lang.Object
org.jpmml.converter.Feature
org.jpmml.converter.ThresholdFeature
org.jpmml.sklearn.BinaryThresholdFeature
category_encoders.BaseNFeature
All Implemented Interfaces:
org.jpmml.converter.HasDerivedName

public class BaseNFeature extends BinaryThresholdFeature
  • Constructor Details

    • BaseNFeature

      public BaseNFeature(org.jpmml.converter.PMMLEncoder encoder, org.dmg.pmml.Field<?> field, int base, int index, com.google.common.collect.SetMultimap<Integer,?> values, Object missingCategory, Integer defaultValue)
    • BaseNFeature

      public BaseNFeature(org.jpmml.converter.PMMLEncoder encoder, org.jpmml.converter.Feature feature, int base, int index, com.google.common.collect.SetMultimap<Integer,?> values, Object missingCategory, Integer defaultValue)
    • BaseNFeature

      public BaseNFeature(org.jpmml.converter.PMMLEncoder encoder, String name, org.dmg.pmml.DataType dataType, int base, int index, com.google.common.collect.SetMultimap<Integer,?> values, Object missingCategory, Integer defaultValue)
  • Method Details

    • getDerivedName

      public String getDerivedName()
    • toContinuousFeature

      public org.jpmml.converter.ContinuousFeature toContinuousFeature()
      Specified by:
      toContinuousFeature in class org.jpmml.converter.Feature
    • getValues

      public Set<?> getValues(Predicate<Number> predicate)
      Specified by:
      getValues in class org.jpmml.converter.ThresholdFeature
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.jpmml.converter.Feature
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class org.jpmml.converter.Feature
    • toStringHelper

      protected org.jpmml.model.ToStringHelper toStringHelper()
      Overrides:
      toStringHelper in class org.jpmml.converter.Feature
    • getBase

      public int getBase()
    • getIndex

      public int getIndex()
    • getValues

      public com.google.common.collect.SetMultimap<Integer,?> getValues()
    • getMissingValue

      public Object getMissingValue()
      Specified by:
      getMissingValue in class org.jpmml.converter.ThresholdFeature
    • getMissingCategory

      public Object getMissingCategory()
    • getDefaultValue

      public Integer getDefaultValue()