Matric interface umbenannt

This commit is contained in:
ngb
2022-07-19 09:14:00 +02:00
parent 4c8e5c8939
commit b79f26f51e
8 changed files with 118 additions and 120 deletions

View File

@@ -5,13 +5,10 @@ import org.junit.jupiter.api.Test;
import schule.ngb.zm.util.Log;
import schule.ngb.zm.util.Timer;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import static org.junit.jupiter.api.Assertions.*;
class NeuralNetworkTest {
@BeforeAll
@@ -79,7 +76,7 @@ class NeuralNetworkTest {
}
// calculate predictions
Matrix predictions = net.predict(inputs);
MLMatrix predictions = net.predict(inputs);
for( int i = 0; i < 4; i++ ) {
int parsed_pred = predictions.get(i, 0) < 0.5 ? 0 : 1;