Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MichalDanielDobrzanski/DeepLearningPython
/ functions
Functions
52 in github.com/MichalDanielDobrzanski/DeepLearningPython
⨍
Functions
52
◇
Types & classes
8
↓ 4 callers
Function
shared
Place the data into shared variables. This allows Theano to copy the data to the GPU, if one is available.
network3.py:68
↓ 4 callers
Function
sigmoid
The sigmoid function.
network.py:143
↓ 4 callers
Function
sigmoid
The sigmoid function.
network2.py:354
↓ 3 callers
Method
accuracy
Return the number of inputs in ``data`` for which the neural network outputs the correct result. The neural network's output is assu
network2.py:270
↓ 3 callers
Method
feedforward
Return the output of the network if ``a`` is input.
network2.py:123
↓ 3 callers
Function
size
Return the size of the dataset `data`.
network3.py:303
↓ 2 callers
Method
accuracy
Return the accuracy for the mini-batch.
network3.py:297
↓ 2 callers
Function
dropout_layer
(layer, p_dropout)
network3.py:307
↓ 2 callers
Method
set_inpt
(self, inpt, inpt_dropout, mini_batch_size)
network3.py:285
↓ 2 callers
Function
sigmoid_prime
Derivative of the sigmoid function.
network.py:147
↓ 2 callers
Function
sigmoid_prime
Derivative of the sigmoid function.
network2.py:358
↓ 2 callers
Method
total_cost
Return the total cost for the data set ``data``. The flag ``convert`` should be set to False if the data set is the training data (
network2.py:303
↓ 1 callers
Method
SGD
Train the neural network using mini-batch stochastic gradient descent. The ``training_data`` is a list of tuples ``(x, y)`` represent
network.py:47
↓ 1 callers
Function
avg_darknesses
Return a defaultdict whose keys are the digits 0 through 9. For each digit we compute a value which is the average darkness of training ima
mnist_average_darkness.py:39
↓ 1 callers
Method
backprop
Return a tuple ``(nabla_b, nabla_w)`` representing the gradient for the cost function C_x. ``nabla_b`` and ``nabla_w`` are layer-by-l
network.py:93
↓ 1 callers
Method
backprop
Return a tuple ``(nabla_b, nabla_w)`` representing the gradient for the cost function C_x. ``nabla_b`` and ``nabla_w`` are layer-by
network2.py:236
↓ 1 callers
Method
cost
Return the log-likelihood cost.
network3.py:293
↓ 1 callers
Method
cost_derivative
Return the vector of partial derivatives \partial C_x / \partial a for the output activations.
network.py:137
↓ 1 callers
Method
default_weight_initializer
Initialize each weight using a Gaussian distribution with mean 0 and standard deviation 1 over the square root of the number of weig
network2.py:86
↓ 1 callers
Method
delta
Return the error delta from the output layer.
network2.py:37
↓ 1 callers
Method
evaluate
Return the number of test inputs for which the neural network outputs the correct result. Note that the neural network's output is ass
network.py:128
↓ 1 callers
Method
feedforward
Return the output of the network if ``a`` is input.
network.py:41
↓ 1 callers
Method
fn
Return the cost associated with an output ``a`` and desired output ``y``.
network2.py:29
↓ 1 callers
Function
guess_digit
Return the digit whose average darkness in the training data is closest to the darkness of ``image``. Note that ``avgs`` is assumed to be a
mnist_average_darkness.py:54
↓ 1 callers
Function
load_data
Return the MNIST data as a tuple containing the training data, the validation data, and the test data. The ``training_data`` is returned as a
mnist_loader.py:19
↓ 1 callers
Function
main
()
mnist_average_darkness.py:27
↓ 1 callers
Function
svm_baseline
()
mnist_svm.py:15
↓ 1 callers
Method
update_mini_batch
Update the network's weights and biases by applying gradient descent using backpropagation to a single mini batch. The ``mini_batch``
network.py:77
↓ 1 callers
Method
update_mini_batch
Update the network's weights and biases by applying gradient descent using backpropagation to a single mini batch. The ``mini_batch
network2.py:217
↓ 1 callers
Function
vectorized_result
Return a 10-dimensional unit vector with a 1.0 in the jth position and zeroes elsewhere. This is used to convert a digit (0...9) into a corre
mnist_loader.py:71
↓ 1 callers
Function
vectorized_result
Return a 10-dimensional unit vector with a 1.0 in the j'th position and zeroes elsewhere. This is used to convert a digit (0...9) into a co
network2.py:344
Function
ReLU
(z)
network3.py:46
Method
SGD
Train the network using mini-batch stochastic gradient descent.
network3.py:103
Method
SGD
Train the neural network using mini-batch stochastic gradient descent. The ``training_data`` is a list of tuples ``(x, y)`` represe
network2.py:129
Method
__init__
The list ``sizes`` contains the number of neurons in the respective layers of the network. For example, if the list was [2, 3, 1] the
network.py:24
Method
__init__
Takes a list of `layers`, describing the network architecture, and a value for the `mini_batch_size` to be used during training by sto
network3.py:83
Method
__init__
`filter_shape` is a tuple of length 4, whose entries are the number of filters, the number of input feature maps, the filter height, and the
network3.py:193
Method
__init__
(self, n_in, n_out, activation_fn=sigmoid, p_dropout=0.0)
network3.py:238
Method
__init__
(self, n_in, n_out, p_dropout=0.0)
network3.py:272
Method
__init__
The list ``sizes`` contains the number of neurons in the respective layers of the network. For example, if the list was [2, 3, 1] t
network2.py:70
Method
accuracy
Return the accuracy for the mini-batch.
network3.py:266
Method
delta
Return the error delta from the output layer. Note that the parameter ``z`` is not used by the method. It is included in the metho
network2.py:57
Method
fn
Return the cost associated with an output ``a`` and desired output ``y``. Note that np.nan_to_num is used to ensure numerical stabi
network2.py:45
Method
large_weight_initializer
Initialize the weights using a Gaussian distribution with mean 0 and standard deviation 1. Initialize the biases using a Gaussian d
network2.py:103
Function
linear
(z)
network3.py:45
Function
load
Load a neural network from the file ``filename``. Returns an instance of Network.
network2.py:329
Function
load_data_shared
(filename="mnist.pkl.gz")
network3.py:64
Function
load_data_wrapper
Return a tuple containing ``(training_data, validation_data, test_data)``. Based on ``load_data``, but the format is more convenient for use i
mnist_loader.py:43
Method
save
Save the neural network to the file ``filename``.
network2.py:318
Method
set_inpt
(self, inpt, inpt_dropout, mini_batch_size)
network3.py:225
Method
set_inpt
(self, inpt, inpt_dropout, mini_batch_size)
network3.py:256
Function
testTheano
()
test.py:127