Skip to content

Commit

Permalink
Random test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann committed Dec 4, 2024
1 parent 696454d commit 7605dc5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.lang.invoke.MethodHandles;
import java.util.Random;

import org.junit.jupiter.api.Test;
import org.mastodon.mamut.feature.dimensionalityreduction.RandomDataTools;
Expand All @@ -52,6 +53,9 @@ void test()
double[][] inputData = RandomDataTools.generateSampleData( numCluster1, numCluster2 );
logger.debug( "dimensions rows: {}, columns:{}", inputData.length, inputData[ 0 ].length );

final Random random = new Random( 42 );
System.out.println( "random 42 next Double: " + random.nextDouble() );

// Recommendations for t-SNE defaults: https://scikit-learn.org/stable/modules/generated/sklearn.manifold.TSNE.html
double perplexity = 30d; // recommended value is between 5 and 50
int maxIterations = 1000; // should be at least 250
Expand Down

0 comments on commit 7605dc5

Please sign in to comment.