mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-10-12 09:56:33 +02:00
Matric interface umbenannt
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user