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/298Convert an inputINDArrayorFieldNamelist 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 Tadapt(java.lang.Object input, io.vertx.ext.web.RoutingContext routingContext)Deprecated.Adapt an arbitrary object.Tadapt(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 typeTadapt(org.nd4j.linalg.api.ndarray.INDArray array, io.vertx.ext.web.RoutingContext routingContext)Deprecated.Given an input array, output the desired typejava.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 arrayroutingContext- 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 convertroutingContext- 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 orINDArray- Parameters:
input- the input to convertroutingContext- 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
-
-