Class Py4jNeuralNetworkServer

  • All Implemented Interfaces:
    java.lang.Runnable, py4j.GatewayServerListener, py4j.Py4JJavaServer

    public class Py4jNeuralNetworkServer
    extends py4j.GatewayServer
    Serves a neural network to python through a py4j gateway server
    Author:
    Bhagat
    • Nested Class Summary

      • Nested classes/interfaces inherited from class py4j.GatewayServer

        py4j.GatewayServer.GatewayServerBuilder
    • Field Summary

      • Fields inherited from class py4j.GatewayServer

        authToken, DEFAULT_ADDRESS, DEFAULT_CONNECT_TIMEOUT, DEFAULT_IPv6_ADDRESS, DEFAULT_PORT, DEFAULT_PYTHON_PORT, DEFAULT_READ_TIMEOUT, GATEWAY_SERVER_ID, PY4J_LOGGER
    • Constructor Summary

      Constructors 
      Constructor Description
      Py4jNeuralNetworkServer​(int... shape)
      Creates and serves a NeuralNetwork with a specified shape
      Py4jNeuralNetworkServer​(SerializableFunction<java.lang.Double,​java.lang.Double> activationFunction, int... shape)
      Creates and serves a NeuralNetwork with a specified shape and activation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start()  
      • Methods inherited from class py4j.GatewayServer

        addListener, connectionStopped, createConnection, defaultAddress, defaultIPv6Address, fireConnectionError, fireConnectionStarted, fireServerError, fireServerPostShutdown, fireServerPreShutdown, fireServerStarted, fireServerStopped, getAddress, getCallbackClient, getConnectTimeout, getCustomCommands, getGateway, getListeners, getListeningPort, getPort, getPythonAddress, getPythonPort, getPythonServerEntryPoint, getReadTimeout, main, processSocket, removeListener, resetCallbackClient, run, shutdown, shutdown, start, startSocket, turnAllLoggingOn, turnLoggingOff, turnLoggingOn
      • Methods inherited from class py4j.DefaultGatewayServerListener

        connectionError, connectionStarted, serverError, serverPostShutdown, serverPreShutdown, serverStarted, serverStopped
      • Methods inherited from class java.lang.Object

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

      • Py4jNeuralNetworkServer

        public Py4jNeuralNetworkServer​(SerializableFunction<java.lang.Double,​java.lang.Double> activationFunction,
                                       int... shape)
        Creates and serves a NeuralNetwork with a specified shape and activation
        Parameters:
        shape - an array defining the shape of the NeuralNetwork
        activationFunction - the activation function
      • Py4jNeuralNetworkServer

        public Py4jNeuralNetworkServer​(int... shape)
        Creates and serves a NeuralNetwork with a specified shape
        Parameters:
        shape - an array defining the shape of the NeuralNetwork
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface py4j.Py4JJavaServer
        Overrides:
        start in class py4j.GatewayServer
        See Also:
        GatewayServer.start()