()
| 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() { |
nothing calls this directly
no test coverage detected