3, 3).draw_layer() Layer(
Neural Networks building blocks
Module
Module ()
Initialize self. See help(type(self)) for accurate signature.
Neuron
Neuron (nin:int)
A simple neuron which has trainable weights from each input and a bias term.
Type | Details | |
---|---|---|
nin | int | number of inputs |
Returns | None |
Layer
Layer (nin:int, nout:int, label:str='')
A layer of neurons. Each neuron has the same number of inputs. Number of neurons required depends on the number of outputs.
Type | Default | Details | |
---|---|---|---|
nin | int | number of inputs | |
nout | int | number of outputs | |
label | str | label for the layer | |
Returns | None |
MLP
MLP (nin:int, nouts:List[int])
A milti layer-preceptron. Each layer is fully connected to the next layer.
Type | Details | |
---|---|---|
nin | int | number of inputs |
nouts | typing.List[int] | list of number of outputs for each layer |
Returns | None |
plot_preds
plot_preds (xs:List[float], ys:List[float], y_preds:List[float])
Plot the actual and predicted output.
Type | Details | |
---|---|---|
xs | typing.List[float] | single input input variable |
ys | typing.List[float] | actual output |
y_preds | typing.List[float] | predicted output |