Class RegressionOutputAdapter

    • Constructor Summary

      Constructors 
      Constructor Description
      RegressionOutputAdapter​(org.datavec.api.transform.schema.Schema schema)
      Create the output adapter with the output inputSchema
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RegressionOutput adapt​(java.lang.Object input, io.vertx.ext.web.RoutingContext routingContext)
      Adapt an arbitrary object.
      RegressionOutput 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
      RegressionOutput adapt​(org.nd4j.linalg.api.ndarray.INDArray array, io.vertx.ext.web.RoutingContext routingContext)
      Given an input array, output the desired type
      java.lang.Class<RegressionOutput> 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

      • RegressionOutputAdapter

        public RegressionOutputAdapter​(org.datavec.api.transform.schema.Schema schema)
        Create the output adapter with the output inputSchema
        Parameters:
        schema - the inputSchema of the output
    • Method Detail

      • adapt

        public RegressionOutput 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<RegressionOutput>
        Parameters:
        array - the input array
        routingContext - Vert.x routing context
        Returns:
        the desired output
      • adapt

        public RegressionOutput 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<RegressionOutput>
        Parameters:
        pmmlExamples - the list of examples to convert
        routingContext - Vert.x routing context
        Returns:
        the desired output type
      • adapt

        public RegressionOutput 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<RegressionOutput>
        Parameters:
        input - the input to convert
        routingContext - routing context
        Returns:
        the output type