Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andersbll/nnet
/ functions
Functions
64 in github.com/andersbll/nnet
⨍
Functions
64
◇
Types & classes
10
↓ 4 callers
Method
error
Calculate error on the given data.
nnet/neuralnetwork.py:79
↓ 4 callers
Method
fprop
Calculate layer output for given input (forward propagation).
nnet/layers.py:10
↓ 3 callers
Method
fit
Train network on the given data.
nnet/neuralnetwork.py:25
↓ 2 callers
Method
_loss
(self, X, Y_one_hot)
nnet/neuralnetwork.py:64
↓ 2 callers
Method
_setup
(self, X, Y)
nnet/neuralnetwork.py:14
↓ 2 callers
Method
bprop
Calculate input gradient.
nnet/layers.py:14
↓ 2 callers
Method
input_grad
Calculate input gradient given output and predicted output.
nnet/layers.py:31
↓ 2 callers
Function
one_hot
(labels)
nnet/helpers.py:4
↓ 2 callers
Method
output_shape
(self, input_shape)
nnet/convnet/layers.py:87
↓ 2 callers
Method
params
(self)
nnet/layers.py:72
↓ 1 callers
Method
check_gradients
Helper function to test the parameter gradients for correctness.
nnet/neuralnetwork.py:85
↓ 1 callers
Method
fun
(param_new)
nnet/neuralnetwork.py:97
↓ 1 callers
Method
loss
Calculate mean loss given output and predicted output.
nnet/layers.py:27
↓ 1 callers
Method
output_shape
Calculate shape of this layer's output. input_shape[0] is the number of samples in the input. input_shape[1:] is the shape of the fea
nnet/layers.py:18
↓ 1 callers
Method
output_shape
(self, input_shape)
nnet/convnet/layers.py:53
↓ 1 callers
Method
param_grads
(self)
nnet/layers.py:78
↓ 1 callers
Method
param_incs
(self)
nnet/layers.py:75
↓ 1 callers
Method
predict
Calculate an output Y for the given input X.
nnet/neuralnetwork.py:71
↓ 1 callers
Function
read
(fname)
setup.py:9
↓ 1 callers
Function
run
()
examples/cnn_mnist.py:10
↓ 1 callers
Function
run
()
examples/mlp_mnist.py:10
↓ 1 callers
Function
run
()
examples/mlp.py:9
↓ 1 callers
Function
sigmoid
(x)
nnet/helpers.py:17
↓ 1 callers
Function
test_conv
()
nnet/convnet/test_conv.py:9
↓ 1 callers
Function
test_pool
()
nnet/convnet/test_pool.py:8
↓ 1 callers
Function
unhot
(one_hot_labels)
nnet/helpers.py:13
Method
__init__
(self, layers, rng=None)
nnet/neuralnetwork.py:8
Method
__init__
(self, n_out, weight_scale, weight_decay=0.0)
nnet/layers.py:51
Method
__init__
(self, type)
nnet/layers.py:88
Method
__init__
(self, n_feats, filter_shape, strides, weight_scale, weight_decay=0.0, padding_mode='same', b
nnet/convnet/layers.py:9
Method
__init__
(self, pool_shape=(3, 3), strides=(1, 1), mode='max')
nnet/convnet/layers.py:68
Method
_setup
Setup layer with parameters that are unknown at __init__().
nnet/layers.py:6
Method
_setup
(self, input_shape, rng)
nnet/layers.py:56
Method
_setup
(self, input_shape, rng)
nnet/convnet/layers.py:19
Method
bprop
(self, output_grad)
nnet/layers.py:66
Method
bprop
(self, output_grad)
nnet/layers.py:105
Method
bprop
(self, output_grad)
nnet/layers.py:118
Method
bprop
(self, output_grad)
nnet/convnet/layers.py:32
Method
bprop
(self, output_grad)
nnet/convnet/layers.py:82
Method
bprop
(self, output_grad)
nnet/convnet/layers.py:100
Method
fprop
(self, input)
nnet/layers.py:62
Method
fprop
(self, input)
nnet/layers.py:101
Method
fprop
(self, input)
nnet/layers.py:114
Method
fprop
(self, input)
nnet/convnet/layers.py:25
Method
fprop
(self, input)
nnet/convnet/layers.py:73
Method
fprop
(self, input)
nnet/convnet/layers.py:96
Method
grad_fun
(param_new)
nnet/neuralnetwork.py:101
Method
input_grad
(self, Y, Y_pred)
nnet/layers.py:124
Method
loss
(self, Y, Y_pred)
nnet/layers.py:128
Method
output_shape
(self, input_shape)
nnet/layers.py:83
Method
output_shape
(self, input_shape)
nnet/layers.py:108
Method
output_shape
(self, input_shape)
nnet/layers.py:136
Method
output_shape
(self, input_shape)
nnet/convnet/layers.py:103
Method
param_grads
Get layer parameter gradients as calculated from bprop().
nnet/layers.py:41
Method
param_grads
(self)
nnet/convnet/layers.py:48
Method
param_incs
Get layer parameter steps as calculated from bprop().
nnet/layers.py:45
Method
param_incs
(self)
nnet/convnet/layers.py:45
Method
params
Layer parameters.
nnet/layers.py:37
Method
params
(self)
nnet/convnet/layers.py:42
Function
relu
(x)
nnet/helpers.py:35
Function
relu_d
(x)
nnet/helpers.py:39
Function
sigmoid_d
(x)
nnet/helpers.py:21
Function
tanh
(x)
nnet/helpers.py:26
Function
tanh_d
(x)
nnet/helpers.py:30