Skip to content

Instantly share code, notes, and snippets.

@shenkev
shenkev / NN
Created December 3, 2016 23:27
Neural Network configuration
double regularize = 0.000001;
double dropOut = 0.0;
int numEpochs = 3000;
int batchSize = 2000;
int printEvery = Xarr.length/batchSize;
// Dimensions
int features = 13;
int lay1 = 100;
int lay2 = 6;
@shenkev
shenkev / power shell console
Created November 29, 2016 21:15
mvn clean install
PS D:\workspace\Robocode> mvn clean install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for Robocode:Robocode:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missing. @ line 28, colum
n 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
@shenkev
shenkev / pom.xml
Created November 29, 2016 21:10
updated 2 pom
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Robocode</groupId>
<artifactId>Robocode</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<nd4j.backend>nd4j-native-platform</nd4j.backend>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<shadedClassifier>bin</shadedClassifier>
@shenkev
shenkev / pom.xml
Created November 29, 2016 20:48
updated pom
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Robocode</groupId>
<artifactId>Robocode</artifactId>
<version>0.0.1-SNAPSHOT</version>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
@shenkev
shenkev / Console Error
Created November 29, 2016 20:47
Console Error
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.nd4j.nativeblas.NativeOpsHolder.<init>(NativeOpsHolder.java:16)
at org.nd4j.nativeblas.NativeOpsHolder.<clinit>(NativeOpsHolder.java:9)
at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.<init>(NativeOpExecutioner.java:38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:5441)
@shenkev
shenkev / pom.xml
Created November 29, 2016 20:42
my pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Robocode</groupId>
<artifactId>Robocode</artifactId>
<version>0.0.1-SNAPSHOT</version>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>