Skip to content

Instantly share code, notes, and snippets.

View strolling-coder's full-sized avatar

strolling-coder

View GitHub Profile
@strolling-coder
strolling-coder / INDArrayNegativeEntropyExample
Created March 31, 2020 17:33
Shows the data of an INDArray which will give a negative entropy value upon calculation of the shannon entropy. DeepLearning 4J Version 1.0.0-beta5
package wld.nd4j.tests;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
public class TestINDArraryEntropy {
public static void main(String[] args) {
TestINDArraryEntropy test = new TestINDArraryEntropy();
test.execute();