Skip to content

Commit

Permalink
Random test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann committed Dec 4, 2024
1 parent 7605dc5 commit 87c51a5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ void test()
int numCluster1 = 50;
int numCluster2 = 100;
double[][] inputData = RandomDataTools.generateSampleData( numCluster1, numCluster2 );
for ( int i = 0; i < inputData.length; i++ )
{
logger.debug( "inputData[{}]: {}, {}", i, inputData[ i ][ 0 ], inputData[ i ][ 1 ] );
}
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
Expand Down

0 comments on commit 87c51a5

Please sign in to comment.