Class ClassifierOutputAdapter

    • Constructor Summary

      Constructors 
      Constructor Description
      ClassifierOutputAdapter​(org.datavec.api.transform.schema.Schema schema)  
    • Method Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassifierOutputAdapter

        public ClassifierOutputAdapter​(org.datavec.api.transform.schema.Schema schema)
    • Method Detail

      • adapt

        public ClassifierOutput adapt​(org.nd4j.linalg.api.ndarray.INDArray array,
                                      io.vertx.ext.web.RoutingContext routingContext)
        Description copied from interface: OutputAdapter
        Given an input array, output the desired type
        Specified by:
        adapt in interface OutputAdapter<ClassifierOutput>
        Parameters:
        array - the input array
        routingContext - Vert.x routing context
        Returns:
        the desired output
      • adapt

        public ClassifierOutput adapt​(java.util.List<? extends java.util.Map<org.dmg.pmml.FieldName,​?>> pmmlExamples,
                                      io.vertx.ext.web.RoutingContext routingContext)
        Description copied from interface: OutputAdapter
        Convert the pmml to the desired type
        Specified by:
        adapt in interface OutputAdapter<ClassifierOutput>
        Parameters:
        pmmlExamples - the list of examples to convert
        routingContext - Vert.x routing context
        Returns:
        the desired output type
      • adapt

        public ClassifierOutput adapt​(java.lang.Object input,
                                      io.vertx.ext.web.RoutingContext routingContext)
        Description copied from interface: OutputAdapter
        Adapt an arbitrary object. This is for types that may be outside of pmml or INDArray
        Specified by:
        adapt in interface OutputAdapter<ClassifierOutput>
        Parameters:
        input - the input to convert
        routingContext - routing context
        Returns:
        the output type
      • getLabels

        public java.lang.String[] getLabels()