Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/afshinm/juggernaut
/ functions
Functions
121 in github.com/afshinm/juggernaut
⨍
Functions
121
◇
Types & classes
18
↓ 28 callers
Method
map
Map
src/matrix.rs:145
↓ 26 callers
Method
add_layer
To add a new layer to the network Example: ``` # #[macro_use] extern crate juggernaut; # fn main() { use juggernaut::sample::Sample; use juggernaut:
src/nn.rs:100
↓ 13 callers
Method
get
Returns the element in the position M,N
src/matrix.rs:111
↓ 11 callers
Method
train
To train the network. It calls the forward pass and updates the weights using backpropagation
src/nn.rs:194
↓ 10 callers
Method
cols
Number of the Matrix columns
src/matrix.rs:106
↓ 7 callers
Method
calc
Calculates the SoftMax of input `x`
src/activation/softmax.rs:14
↓ 7 callers
Method
rows
Number of the Matrix rows
src/matrix.rs:101
↓ 5 callers
Method
evaluate
Use this function to evaluate a trained neural network This function simply passes the given sample to the `forward` function and returns the output
src/nn.rs:177
↓ 5 callers
Method
forward
This is the forward method of the network which calculates the random weights and multiplies the inputs of given samples to the weights matrix. Thinks
src/nn.rs:124
↓ 5 callers
Method
row
Returns a row of Matrix
src/matrix.rs:96
↓ 4 callers
Method
dot
(&self, x: T)
src/math.rs:13
↓ 4 callers
Function
from_vec
()
src/matrix.rs:231
↓ 4 callers
Method
map_row
Map for each row of Matrix
src/matrix.rs:150
↓ 4 callers
Method
transpose
Transpose of a Matrix
src/matrix.rs:140
↓ 4 callers
Method
weights
weights without bias node
src/nl.rs:41
↓ 3 callers
Method
calc
(&self, prediction: &Matrix, target: &Matrix)
src/cost/squared_error.rs:19
↓ 3 callers
Method
calc
Calculates the Sigmoid of input `x`
src/activation/sigmoid.rs:14
↓ 2 callers
Method
biases
(&self)
src/nl.rs:36
↓ 2 callers
Method
calc
(&self, prediction: &Matrix, target: &Matrix)
src/cost/cross_entropy.rs:20
↓ 2 callers
Method
derivative
Calculates the Derivative Sigmoid of input `x`
src/activation/sigmoid.rs:21
↓ 2 callers
Function
generate_by_row
()
src/matrix.rs:270
↓ 2 callers
Method
on_error
To add a callback function and receive the errors of the network during training process Please note that there is another function that basically cal
src/nn.rs:48
↓ 2 callers
Function
sample_input_to_matrix
(sample: &Sample)
src/utils.rs:5
↓ 2 callers
Method
set_cost_function
To set a cost function for the network
src/nn.rs:39
↓ 1 callers
Method
derivative
Calculates the Derivative SoftMax of input `x`
src/activation/softmax.rs:31
↓ 1 callers
Method
emit_on_epoch
To emit the `on_epoch` callback
src/nn.rs:72
↓ 1 callers
Method
emit_on_error
To emit the `on_error` callback
src/nn.rs:64
↓ 1 callers
Method
error
This function calculates the error rate of network during training and calls the `on_error_fn` if it is available
src/nn.rs:186
↓ 1 callers
Method
get_inputs_count
(&self)
src/sample.rs:23
↓ 1 callers
Method
get_layers
To get the layers of the network
src/nn.rs:118
↓ 1 callers
Method
get_outputs_count
(&self)
src/sample.rs:27
↓ 1 callers
Method
inputs
(&self)
src/nl.rs:32
↓ 1 callers
Method
neurons
(&self)
src/nl.rs:28
↓ 1 callers
Method
on_epoch
To add a callback function to get called after each epoch
src/nn.rs:56
↓ 1 callers
Function
sample_output_to_matrix
(sample: &Sample)
src/utils.rs:13
↓ 1 callers
Method
set_biases
(&mut self, weights: Matrix)
src/nl.rs:58
↓ 1 callers
Method
set_shuffle_data
To set shuffle data flag Enabling this option shuffles data before each iteration
src/nn.rs:34
↓ 1 callers
Method
set_weights
(&mut self, weights: Matrix)
src/nl.rs:50
Function
body
()
src/matrix.rs:258
Method
body
To get the first element of the Matrix (Vec<Vec<_>>)
src/matrix.rs:155
Method
calc
Calculates the LeakyRectifiedLinearUnit of input `x`
src/activation/leakyrectifiedlinearunit.rs:16
Method
calc
Calculates the tanh of input `x`
src/activation/hyperbolictangent.rs:15
Method
calc
Calculates the Identity of input `x`
src/activation/identity.rs:14
Method
calc
Calculates the SoftPlus of input `x`
src/activation/softplus.rs:15
Method
calc
Calculates the RectifiedLinearUnit of input `x`
src/activation/rectifiedlinearunit.rs:14
Function
cross_entropy_calc_half_test
()
src/cost/cross_entropy.rs:83
Function
cross_entropy_calc_test
()
src/cost/cross_entropy.rs:72
Method
derivative
Calculates the Derivative LeakyRectifiedLinearUnit of input `x`
src/activation/leakyrectifiedlinearunit.rs:27
Method
derivative
Calculates the Derivative tanh of input `x`
src/activation/hyperbolictangent.rs:20
Method
derivative
Calculates the Derivative Identity of input `x`
src/activation/identity.rs:19
Method
derivative
Calculates the Derivative SoftPlus of input `x`
src/activation/softplus.rs:20
Method
derivative
Calculates the Derivative RectifiedLinearUnit of input `x`
src/activation/rectifiedlinearunit.rs:21
Method
dot
Multiplication with Matrix
src/matrix.rs:118
Function
empty_matrix_test
()
src/matrix.rs:165
Function
error_function_test
()
src/nn.rs:428
Function
forward_test
()
src/nn.rs:331
Function
forward_test_2layers
()
src/nn.rs:345
Method
from_vec
Generates Matrix from a vector
src/matrix.rs:91
Method
generate
Returns a vector with `m` rows and `n` columns Example: ``` # #[macro_use] extern crate juggernaut; # fn main() { use juggernaut::matrix::Matrix; us
src/matrix.rs:40
Method
generate_by_row
Returns a new Matrix with `m` rows and `n` columns Works exactly same as `generate` but accepts a Fn that returns each row of the matrix instead of e
src/matrix.rs:60
Function
generate_by_row_variable_rows
()
src/matrix.rs:282
Function
get_layers_test
()
src/nn.rs:316
Function
identity_derivative_test
()
src/activation/identity.rs:36
Function
identity_test
()
src/activation/identity.rs:30
Function
inputs_count
()
src/sample.rs:41
Function
leakyrectifiedlinearunit_derivative_test
()
src/activation/leakyrectifiedlinearunit.rs:47
Function
leakyrectifiedlinearunit_test
()
src/activation/leakyrectifiedlinearunit.rs:40
Function
main
()
examples/helloworld.rs:10
Function
map_row_variable_rows
()
src/matrix.rs:295
Method
name
(&self)
src/cost/squared_error.rs:15
Method
name
(&self)
src/cost/cross_entropy.rs:16
Function
network_with_two_activations
()
src/nn.rs:485
Method
new
(neurons: usize, inputs: usize, activation: T)
src/nl.rs:15
Method
new
()
src/nn.rs:22
Method
new
(inputs: Vec<f64>, outputs: Vec<f64>)
src/sample.rs:9
Method
new
()
src/cost/squared_error.rs:9
Method
new
()
src/cost/cross_entropy.rs:10
Method
new
(alpha: f64)
src/activation/leakyrectifiedlinearunit.rs:9
Method
new
()
src/activation/hyperbolictangent.rs:8
Method
new
()
src/activation/sigmoid.rs:7
Method
new
()
src/activation/identity.rs:7
Method
new
()
src/activation/softplus.rs:8
Method
new
()
src/activation/rectifiedlinearunit.rs:7
Method
new
()
src/activation/softmax.rs:7
Function
new_neural_layer
()
src/nl.rs:74
Function
new_predict_inputs_count
()
src/sample.rs:53
Function
new_predict_output_count
()
src/sample.rs:59
Function
on_epoch_test
()
src/nn.rs:454
Function
outputs_count
()
src/sample.rs:47
Method
predict
(inputs: Vec<f64>)
src/sample.rs:16
Method
random
Returns a vector with `m` rows and `n` columns with random elements
src/matrix.rs:80
Function
random_matrix_get
()
src/matrix.rs:179
Function
random_matrix_test
()
src/matrix.rs:171
Function
random_mul_test1
()
src/matrix.rs:189
Function
random_mul_test2
()
src/matrix.rs:198
Function
random_mul_test3
()
src/matrix.rs:207
Function
random_mul_test4
()
src/matrix.rs:220
Function
rectifiedlinearunit_derivative_test
()
src/activation/rectifiedlinearunit.rs:41
Function
rectifiedlinearunit_test
()
src/activation/rectifiedlinearunit.rs:34
Function
shuffle_data
()
src/nn.rs:581
next →
1–100 of 121, ranked by callers