Skip to content

Instantly share code, notes, and snippets.

Avatar
🍀
Gugugu

Rabenda Rabenda

🍀
Gugugu
View GitHub Profile
@Rabenda
Rabenda / WA2-Ubuntu.md
Created Oct 17, 2018 — forked from ObserverOfTime/WA2-Ubuntu.md
Install and patch White Album 2 on Linux
View WA2-Ubuntu.md

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
@Rabenda
Rabenda / Adam.sc
Last active Dec 8, 2017 — forked from TerrorJack/Adam.sc
Adam.sc
View Adam.sc
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
View INDArrayLearningRate.sc
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 = {