Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use an OS independent file separator. #162

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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