File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 12
12
platform = espressif32
13
13
board = esp32-s3-devkitc-1
14
14
framework = arduino
15
+ test_framework = unity
16
+ test_build_src = yes
17
+ monitor_speed = 115200
18
+ build_flags =
19
+ -DUNITY_INCLUDE_DOUBLE
20
+ -DUNITY_DOUBLE_PRECISION =1e-12
15
21
lib_deps =
16
22
https://github.com/eloquentarduino/EloquentTinyML.git
17
23
https://github.com/arrhythmia-detection/tflm_esp32.git
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ void test_prediction_class() {
49
49
50
50
void test_prediction_output_range () {
51
51
testMLP.predict (test_inputs);
52
- // Check if all output probabilities are between 0 and 1
52
+ // Check if all output probabilities are between 0 and 1 (SOFTMAX Activiation Function)
53
53
for (u_int16_t i = 0 ; i < TF_NUM_OUTPUTS; i++) {
54
54
TEST_ASSERT_TRUE (testMLP.outputs [i] >= 0 .0f && testMLP.outputs [i] <= 1 .0f );
55
55
}
You can’t perform that action at this time.
0 commit comments