Class BinaryResponseProcessor<T extends Output<T>>

java.lang.Object
org.tribuo.data.columnar.processors.response.BinaryResponseProcessor<T>
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, ResponseProcessor<T>

public class BinaryResponseProcessor<T extends Output<T>> extends Object implements ResponseProcessor<T>
A ResponseProcessor that takes a single value of the field as the positive class and all other values as the negative class.
  • Constructor Details

    • BinaryResponseProcessor

      public BinaryResponseProcessor(String fieldName, String positiveResponse, OutputFactory<T> outputFactory)
      Constructs a binary response processor which emits a positive value for a single string and a negative value for all other field values.
      Parameters:
      fieldName - The field name to read.
      positiveResponse - The positive response to look for.
      outputFactory - The output factory to use.
  • Method Details