:py:mod:`pycasx.tools.NNet.nnet` ================================ .. py:module:: pycasx.tools.NNet.nnet .. autoapi-nested-parse:: NNet runtime. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: pycasx.tools.NNet.nnet.NNet .. py:class:: NNet(filename) Class that represents a fully connected ReLU network from a .nnet file. :param filename: A .nnet file to load :type filename: str .. attribute:: numLayers Number of weight matrices or bias vectors in neural network :type: int .. attribute:: layerSizes Size of input layer, hidden layers, and output layer :type: list of ints .. attribute:: inputSize Size of input :type: int .. attribute:: outputSize Size of output :type: int .. attribute:: mins Minimum values of inputs :type: list of floats .. attribute:: maxes Maximum values of inputs :type: list of floats .. attribute:: means Means of inputs and mean of outputs :type: list of floats .. attribute:: ranges Ranges of inputs and range of outputs :type: list of floats .. attribute:: weights Weight matrices in network :type: list of numpy arrays .. attribute:: biases Bias vectors in network :type: list of numpy arrays .. py:method:: evaluate_network(inputs) Evaluate network using given inputs. :param inputs: Network inputs to be evaluated :type inputs: numpy array of floats :returns: Network output :rtype: (numpy array of floats) .. py:method:: evaluate_network_multiple(inputs) Evaluate network using multiple sets of inputs. :param inputs: Array of network inputs to be evaluated. :type inputs: numpy array of floats :returns: Network outputs for each set of inputs :rtype: (numpy array of floats) .. py:method:: num_inputs() Get network input size. .. py:method:: num_outputs() Get network output size.