Package io.bhagat.server
Class Py4jNeuralNetworkServer
- java.lang.Object
-
- py4j.DefaultGatewayServerListener
-
- py4j.GatewayServer
-
- io.bhagat.server.Py4jNeuralNetworkServer
-
- All Implemented Interfaces:
java.lang.Runnable,py4j.GatewayServerListener,py4j.Py4JJavaServer
public class Py4jNeuralNetworkServer extends py4j.GatewayServerServes a neural network to python through a py4j gateway server- Author:
- Bhagat
-
-
Constructor Summary
Constructors Constructor Description Py4jNeuralNetworkServer(int... shape)Creates and serves a NeuralNetwork with a specified shapePy4jNeuralNetworkServer(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 voidstart()-
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
-
-
-
-
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 NeuralNetworkactivationFunction- 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
-
-