Skip to content

Instantly share code, notes, and snippets.

@yusugomori
yusugomori / utils.java
Created August 26, 2015 01:13
utils.java
package DeepLearning;
import java.util.Random;
public class utils {
public static double uniform(double min, double max, Random rng) {
return rng.nextDouble() * (max - min) + min;
}
public static int binomial(int n, double p, Random rng) {
@yusugomori
yusugomori / LogisticRegression.java
Created August 26, 2015 01:14
simple logistic regression
package DeepLearning;
public class LogisticRegression {
public int N;
public int n_in;
public int n_out;
public double[][] W;
public double[] b;
public LogisticRegression(int N, int n_in, int n_out) {
@yusugomori
yusugomori / LogisticRegression.go
Created December 6, 2014 17:45
LogisticRegression.go
package main
import (
"fmt"
"math"
)
type LogisticRegression struct {
N int
n_in int
@yusugomori
yusugomori / DBN.go
Created December 7, 2014 06:35
Deep Belief Nets.go
package main
import (
"fmt"
"math"
"math/rand"
)
func uniform(min float64, max float64) float64 {
.A {
position: relative;
left: 30px;
width: 60px;
height: 91px;
border-bottom: solid 14px #000000;
}
.A:before {
-webkit-transform: skew(-19deg, 0);
-moz-transform: skew(-19deg, 0);
.A {
position: relative;
left: 30px;
width: 60px;
height: 91px;
border-bottom: solid 14px #000000;
}
.A:before {
transform: skew(-19deg, 0);
position: absolute;
@yusugomori
yusugomori / SdA.go
Created December 14, 2014 08:06
Stacked Denoising Autoencoders.go
package main
import (
"fmt"
"math"
"math/rand"
)
func uniform(min float64, max float64) float64 {
#
# applicationController.coffee
#
class App.ApplicationController extends Tower.Controller
# @layout "application" # ここに@layoutを置くと、上書きできない。
constructor: ->
@layout = "application" # @layoutはcontructorの中に。
@userAgent = ""
#
# app/view/layouts/application-iphone.coffee
#
doctype 5
html lang: "ja", "xmlns:og": "http://ogp.me/ns#", "xmlns:fb": "http://www.facebook.com/2008/fbml", ->
head ->
partial "shared/meta"
body class: "iphone safari", ->
div class: "main-header", ->
@yusugomori
yusugomori / iphone.css.less
Created April 1, 2012 12:29
iphone.css.less
//
// Part of stylesheets/iphone.css.less
//
//========== Header ==========//
.main-header {
height: 44px;
overflow: hidden;
font-size: 10px;
font-weight: bold;