public class ClassificationMultiOutputAdapter extends Object implements MultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>
MultiOutputAdapter for classification.
Internally it uses a cached ClassifierOutputAdapter
to generate the json needed for obtaining interpretable
results for classification.| Constructor and Description |
|---|
ClassificationMultiOutputAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,BatchOutput> |
adapt(org.nd4j.linalg.api.ndarray.INDArray[] array,
List<String> outputNames,
io.vertx.ext.web.RoutingContext routingContext)
Adapt a pair of
INDArray
and the output names,
with the array input ordered by the output name |
List<Class<? extends OutputAdapter<?>>> |
outputAdapterTypes()
Returns a map of the strings by output name
to the
OutputAdapter
for each output |
public Map<String,BatchOutput> adapt(org.nd4j.linalg.api.ndarray.INDArray[] array, List<String> outputNames, io.vertx.ext.web.RoutingContext routingContext)
MultiOutputAdapterINDArray
and the output names,
with the array input ordered by the output nameadapt in interface MultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>array - the arrays to adaptoutputNames - the output names to adaptroutingContext - routing contextpublic List<Class<? extends OutputAdapter<?>>> outputAdapterTypes()
MultiOutputAdapterOutputAdapter
for each outputoutputAdapterTypes in interface MultiOutputAdapter<org.nd4j.linalg.api.ndarray.INDArray[]>Copyright © 2022. All rights reserved.