Class Py4jPrincipalComponentServer

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

    public class Py4jPrincipalComponentServer
    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
      Py4jPrincipalComponentServer()
      Creates and serves a NeuralNetwork with a specified shape and activation
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      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, 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

      • Py4jPrincipalComponentServer

        public Py4jPrincipalComponentServer()
        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
    • Method Detail

      • start

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

        public static void main​(java.lang.String[] args)