This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
type LogisticRegression struct { | |
N int | |
n_in int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
"math/rand" | |
) | |
func uniform(min float64, max float64) float64 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.A { | |
position: relative; | |
left: 30px; | |
width: 60px; | |
height: 91px; | |
border-bottom: solid 14px #000000; | |
} | |
.A:before { | |
transform: skew(-19deg, 0); | |
position: absolute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
"math/rand" | |
) | |
func uniform(min float64, max float64) float64 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# applicationController.coffee | |
# | |
class App.ApplicationController extends Tower.Controller | |
# @layout "application" # ここに@layoutを置くと、上書きできない。 | |
constructor: -> | |
@layout = "application" # @layoutはcontructorの中に。 | |
@userAgent = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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", -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Part of stylesheets/iphone.css.less | |
// | |
//========== Header ==========// | |
.main-header { | |
height: 44px; | |
overflow: hidden; | |
font-size: 10px; | |
font-weight: bold; |
OlderNewer