Skip to content

Instantly share code, notes, and snippets.

View C4N4D4M4N's full-sized avatar

Kael C4N4D4M4N

View GitHub Profile
@C4N4D4M4N
C4N4D4M4N / ModelTestClass.java
Created September 28, 2018 12:40
Testing Batch Normalization, Reduces Accuracy
public static ComputationGraphConfiguration getBatchNormModel() {
int[][][] i;
if (LENGTHWISE) {
i = new int[][][] {{{0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}}};
} else {
i = new int[][][] {{{0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}}};
}
int channels = i.length;
int length = i[0].length;
package com.IceKontroI.MODEL_TEST;
import org.deeplearning4j.eval.IEvaluation;
import org.deeplearning4j.eval.RegressionEvaluation;
import org.deeplearning4j.nn.conf.ComputationGraphConfiguration;
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;
import org.deeplearning4j.nn.conf.inputs.InputType;
import org.deeplearning4j.nn.conf.layers.DenseLayer;
import org.deeplearning4j.nn.conf.layers.OutputLayer;
import org.deeplearning4j.nn.graph.ComputationGraph;
@C4N4D4M4N
C4N4D4M4N / gist:335ed34dd8fcefe0ee612abdffe06f2c
Created November 1, 2018 22:00
Inter Program Communication Failure
[17:16:53] Exception in thread "Thread-167"
[17:16:53] java.lang.NoClassDefFoundError: Could not initialize class org.nd4j.linalg.factory.Nd4j
[17:16:53] at org.deeplearning4j.util.ModelSerializer.restoreComputationGraph(ModelSerializer.java:579)
[17:16:53] at org.deeplearning4j.util.ModelSerializer.restoreComputationGraph(ModelSerializer.java:465)
[17:16:53] at org.deeplearning4j.nn.graph.ComputationGraph.readObject(ComputationGraph.java:4576)
[17:16:53] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[17:16:53] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[17:16:53] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[17:16:53] at java.lang.reflect.Method.invoke(Method.java:526)
[17:16:53] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
[20:06:56] C:\Users\Kael\AppData\Roaming\.tribot
[20:06:56] Script initializing
[20:06:56] Login bot state = false
[20:06:56] AI antbian state = false
[20:06:56] Loaded existing purchase history
[20:06:56] Listening for GE Offer changes
[20:06:56] Listening for GE Collection changes
[20:06:56] Listening for Inventory Item changes
[20:06:56] Offer Observer initialized
[20:06:56] Attempting to connect to RSX_Master
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.concurrent.TimeUnit;
public class OSBuddyTest {
@C4N4D4M4N
C4N4D4M4N / gist:7c0596bb751c2144df246d8b375d8334
Last active February 5, 2019 21:15
RNN Masks not applying
package com.IceKontroI.AI;
import org.deeplearning4j.eval.RegressionEvaluation;
import org.deeplearning4j.nn.conf.ComputationGraphConfiguration;
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;
import org.deeplearning4j.nn.conf.inputs.InputType;
import org.deeplearning4j.nn.conf.layers.DenseLayer;
import org.deeplearning4j.nn.conf.layers.LSTM;
import org.deeplearning4j.nn.conf.layers.OutputLayer;
import org.deeplearning4j.nn.conf.layers.recurrent.LastTimeStep;