Interface OutputAdapter<T extends BatchOutput>

  • Type Parameters:
    T - the type to convert to
    All Known Implementing Classes:
    ClassifierOutputAdapter, RawOutputAdapter, RegressionOutputAdapter

    @Deprecated
    public interface OutputAdapter<T extends BatchOutput>
    Deprecated.
    To be removed - see https://github.com/KonduitAI/konduit-serving/issues/298
    Convert an input INDArray or FieldName list map from PMML to human readable json.
    Author:
    Adam Gibson
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      T adapt​(java.lang.Object input, io.vertx.ext.web.RoutingContext routingContext)
      Deprecated.
      Adapt an arbitrary object.
      T adapt​(java.util.List<? extends java.util.Map<org.dmg.pmml.FieldName,​?>> pmmlExamples, io.vertx.ext.web.RoutingContext routingContext)
      Deprecated.
      Convert the pmml to the desired type
      T adapt​(org.nd4j.linalg.api.ndarray.INDArray array, io.vertx.ext.web.RoutingContext routingContext)
      Deprecated.
      Given an input array, output the desired type
      java.lang.Class<T> outputAdapterType()
      Deprecated.
      Returns the output type of this output adapter.
    • Method Detail

      • adapt

        T adapt​(org.nd4j.linalg.api.ndarray.INDArray array,
                io.vertx.ext.web.RoutingContext routingContext)
        Deprecated.
        Given an input array, output the desired type
        Parameters:
        array - the input array
        routingContext - Vert.x routing context
        Returns:
        the desired output
      • adapt

        T adapt​(java.util.List<? extends java.util.Map<org.dmg.pmml.FieldName,​?>> pmmlExamples,
                io.vertx.ext.web.RoutingContext routingContext)
        Deprecated.
        Convert the pmml to the desired type
        Parameters:
        pmmlExamples - the list of examples to convert
        routingContext - Vert.x routing context
        Returns:
        the desired output type
      • adapt

        T adapt​(java.lang.Object input,
                io.vertx.ext.web.RoutingContext routingContext)
        Deprecated.
        Adapt an arbitrary object. This is for types that may be outside of pmml or INDArray
        Parameters:
        input - the input to convert
        routingContext - routing context
        Returns:
        the output type
      • outputAdapterType

        java.lang.Class<T> outputAdapterType()
        Deprecated.
        Returns the output type of this output adapter. This metadata is used for documentation generation
        Returns:
        adapter type