Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/avinashshenoy97/RusticSOM
/ functions
Functions
26 in github.com/avinashshenoy97/RusticSOM
⨍
Functions
26
◇
Types & classes
2
↓ 5 callers
Method
winner
To find and return the position of the winner neuron for a given input sample. TODO: (breaking-change) switch `elem` to `ArrayView1`. See todo for `S
src/lib.rs:77
↓ 3 callers
Method
distance_map
Returns the distance map of each neuron / the normalised sum of a neuron to every other neuron in the map.
src/lib.rs:224
↓ 2 callers
Function
euclid_dist
Returns the [Euclidean distance] between `a` and `b`. [Euclidean distance]: https://en.wikipedia.org/wiki/Euclidean_distance
src/lib.rs:313
↓ 2 callers
Function
norm
Returns the 2-norm of a vector represented as a 1D ArrayView
src/lib.rs:286
↓ 2 callers
Method
train_batch
Trains the SOM by picking data points in batches (sequentially) as inputs from the dataset
src/lib.rs:167
↓ 2 callers
Method
train_random
Trains the SOM by picking random data points as inputs from the dataset
src/lib.rs:148
↓ 2 callers
Method
update
Update the weights of the SOM
src/lib.rs:122
↓ 2 callers
Method
update_regulate_lrate
Update learning rate regulator (keep learning rate constant with increase in number of iterations)
src/lib.rs:186
↓ 1 callers
Method
set_map_cell
(&mut self, (i, j, k): (usize, usize, usize), val: f64)
src/lib.rs:255
↓ 1 callers
Method
to_json
(&self)
src/lib.rs:117
Method
activation_response
Returns the activation map of the SOM, where each cell at (i, j) represents how many times the cell at (i, j) in the SOM was picked a winner neuron.
src/lib.rs:191
Method
create
( length: usize, breadth: usize, inputs: usize, randomize: bool, learn
src/lib.rs:36
Function
default_decay_fn
The default decay function for LR and Sigma
src/lib.rs:291
Method
fmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:268
Method
from_json
( serialized: &str, decay_fn: Option<DecayFn>, neighbourhood_fn: Option<NeighbourhoodF
src/lib.rs:104
Function
gaussian
Default neighborhood function. Returns a two-dimensional Gaussian distribution centered at `pos`.
src/lib.rs:298
Method
get_map_cell
(&self, (i, j, k): (usize, usize, usize))
src/lib.rs:261
Method
get_size
Returns size of SOM.
src/lib.rs:219
Function
t_distance_map
()
tests/test.rs:29
Function
t_full_test
()
tests/test_json.rs:8
Function
t_full_test
()
tests/test.rs:44
Function
t_test_size
()
tests/test.rs:23
Function
t_test_som
()
tests/test.rs:8
Function
test_euclid
()
src/lib.rs:346
Function
test_winner
()
src/lib.rs:330
Method
winner_dist
Similar to winner(), but also returns distance of input sample from winner neuron. TODO: (breaking-change) make `elem` an `ArrayView1` to remove at l
src/lib.rs:201