Skip to content

Instantly share code, notes, and snippets.


Rabenda Rabenda

View GitHub Profile
import com.thoughtworks.deeplearning.plugins.INDArrayWeights
trait INDArrayLearningRate extends INDArrayWeights {
val learningRate: Double
trait INDArrayOptimizerApi extends super.INDArrayOptimizerApi { this: INDArrayOptimizer =>
import org.nd4s.Implicits._
override def delta: INDArray = {
Rabenda /
Last active Dec 8, 2017 — forked from TerrorJack/
trait Adam extends INDArrayWeights {
import org.nd4j.linalg.ops.transforms.Transforms
trait INDArrayWeightApi extends super.INDArrayWeightApi {
this: INDArrayWeight =>
private var m0: Option[INDArray] = None
def m = m0.getOrElse(Nd4j.zeros(data.shape: _*))
def m_=(value: INDArray) = m0 = Some(value)
private var v0: Option[INDArray] = None
Rabenda /
Created Oct 17, 2018 — forked from ObserverOfTime/
Install and patch White Album 2 on Linux

For Ubuntu and other Debian-based distros

You can fork this gist and add instructions for your own distro and I'll link them below.

1: Enable Japanese Locale

Check whether it's already enabled:

$ locale -a | grep ja