MCPcopy Create free account
hub / github.com/daniel-e/rustml / test_nn_create_params

Function test_nn_create_params

src/nn.rs:249–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247
248 #[test]
249 fn test_nn_create_params() {
250
251 // 5 = number of units in new layer (rows in matrix)
252 // 3 = number of units in last layer (columns in matrix)
253 let a = NeuralNetwork::new().create_params(5, 3, true);
254 assert_eq!(a.rows(), 5);
255 assert_eq!(a.cols(), 3);
256 let b = NeuralNetwork::new().create_params(5, 3, false);
257 assert_eq!(b.rows(), 5);
258 assert_eq!(b.cols(), 4);
259 }
260
261 #[test]
262 fn test_nn() {

Callers

nothing calls this directly

Calls 1

create_paramsMethod · 0.80

Tested by

no test coverage detected