Class RegressionMultiOutputAdapter
- java.lang.Object
-
- ai.konduit.serving.output.adapter.RegressionMultiOutputAdapter
-
- All Implemented Interfaces:
MultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>
public class RegressionMultiOutputAdapter extends java.lang.Object implements MultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>
AMultiOutputAdapterfor elnino. Internally it uses a cachedRegressionOutputAdapterto generate the json needed for obtaining interpretable results for elnino.- Author:
- Adam Gibson
-
-
Constructor Summary
Constructors Constructor Description RegressionMultiOutputAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,BatchOutput>adapt(org.nd4j.linalg.api.ndarray.INDArray[] array, java.util.List<java.lang.String> outputNames, io.vertx.ext.web.RoutingContext routingContext)Adapt a pair ofINDArrayand the output names, with the array input ordered by the output namejava.util.List<java.lang.Class<? extends OutputAdapter<?>>>outputAdapterTypes()Returns a map of the strings by output name to theOutputAdapterfor each output
-
-
-
Method Detail
-
adapt
public java.util.Map<java.lang.String,BatchOutput> adapt(org.nd4j.linalg.api.ndarray.INDArray[] array, java.util.List<java.lang.String> outputNames, io.vertx.ext.web.RoutingContext routingContext)
Description copied from interface:MultiOutputAdapterAdapt a pair ofINDArrayand the output names, with the array input ordered by the output name- Specified by:
adaptin interfaceMultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>- Parameters:
array- the arrays to adaptoutputNames- the output names to adaptroutingContext- routing context- Returns:
- Adapted inputs
-
outputAdapterTypes
public java.util.List<java.lang.Class<? extends OutputAdapter<?>>> outputAdapterTypes()
Description copied from interface:MultiOutputAdapterReturns a map of the strings by output name to theOutputAdapterfor each output- Specified by:
outputAdapterTypesin interfaceMultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>- Returns:
- the output adapter types for this multi output adapter
-
-