Skip to content

Instantly share code, notes, and snippets.

Privacy Policy

Last updated: March 09, 2022

This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the Service and tells You about Your privacy rights and how the law protects You.

We use Your Personal data to provide and improve the Service. By using the Service, You agree to the collection and use of information in accordance with this Privacy Policy. This Privacy Policy has been created with the help of the Privacy Policy Template.

Interpretation and Definitions

public class ButtonNN {
protected static int height = 100;
protected static int width = 100;
protected static int channels = 1;
protected static int batchSize = 16;
protected static long seed = 42;
protected static Random rng = new Random(seed);
protected static int epochs = 50;
@frakc
frakc / con.kt
Last active November 5, 2017 16:33
memmory problem
val conf = NeuralNetConfiguration.Builder()
.seed(rngseed)
.optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)
.iterations(1)
.learningRate(0.006)
.updater(Updater.NESTEROVS)
.regularization(true).l2(1e-4)
.list()
.layer(0, DenseLayer.Builder()
.nIn(height * width)
@frakc
frakc / cuda.java
Created November 5, 2017 15:10
cuda init exception
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.yarh.starpd.dl4j.xor.CreateDs.<init>(CreateDs.kt:39)
at com.yarh.starpd.dl4j.xor.CreateDs.<clinit>(CreateDs.kt:35)
at com.yarh.starpd.dl4j.xor.CreateD_C_C.create(CreateD_C_C.kt:29)
at com.yarh.starpd.dl4j.xor.CreateDsKt.main(CreateDs.kt:11)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:6212)
at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:6087)
at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:201)
... 4 more
@frakc
frakc / bash.sh
Created November 5, 2017 14:52
cuda problem
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Sun_Sep__4_22:14:01_CDT_2016
Cuda compilation tools, release 8.0, V8.0.44