Skip to content

Commit

Permalink
Merge pull request #162 from dshunter107/path_separator
Browse files Browse the repository at this point in the history
Use an OS independent file separator.
  • Loading branch information
Samyssmile authored Jan 26, 2024
2 parents 51b6788 + b4b9f24 commit b2a74c4
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions lib/src/test/java/de/edux/core/network/FractalityNetworkTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package de.edux.core.network;

import java.nio.file.Paths;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

import de.edux.ml.api.ExecutionMode;
import de.edux.ml.mlp.core.network.NetworkBuilder;
import de.edux.ml.mlp.core.network.layers.DenseLayer;
Expand All @@ -8,8 +13,6 @@
import de.edux.ml.mlp.core.network.loader.Loader;
import de.edux.ml.mlp.core.network.loader.MetaData;
import de.edux.ml.mlp.core.network.loader.fractality.FractalityLoader;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

public class FractalityNetworkTest {

Expand All @@ -18,22 +21,22 @@ public class FractalityNetworkTest {

@BeforeAll
static void setUp() {

fractalityTrainLoader =
new FractalityLoader(
"src/test/resources/fractality/small_train/class",
"src/test/resources/fractality/small_train/images.csv",
Paths.get("src", "test", "resources", "fractality", "small_train", "class").toString(),
Paths.get("src", "test", "resources", "fractality", "small_train", "images.csv").toString(),
100,
64,
64);

fractalityTestLoader =
new FractalityLoader(
"src/test/resources/fractality/small_test/class",
"src/test/resources/fractality/small_test/images.csv",
10,
64,
64);
}
fractalityTestLoader = new FractalityLoader(
Paths.get("src", "test", "resources", "fractality", "small_test", "class").toString(),
Paths.get("src", "test", "resources", "fractality", "small_test", "images.csv").toString(),
10,
64,
64);
}

@Test
public void shouldTrain() {
Expand Down

0 comments on commit b2a74c4

Please sign in to comment.