Skip to content

Instantly share code, notes, and snippets.

View ryoppippi's full-sized avatar
🪀
yoyo

ryoppippi ryoppippi

🪀
yoyo
View GitHub Profile
@ryoppippi
ryoppippi / Lecture8-1.ipynb
Last active May 29, 2017 08:43
Lecture8-1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryoppippi
ryoppippi / nn.cpp
Last active May 18, 2017 06:59
授業で作ったNeural Networkでxの二乗を学習するやつ #cpp #NN
#include <bits/stdc++.h>
#define FOR(i,a,b) for (auto i=(a);i<(b);i++)
#define REP(i,n) for (auto i=0;i<(n);i++)
#define EPS 1e-15
#define I 1
#define H 4
#define O 1
#define N 500
#define alpha 0.35
@ryoppippi
ryoppippi / Lecture3-3.ipynb
Last active April 28, 2017 08:43
Lecture3-3.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryoppippi
ryoppippi / Lecture3-2.ipynb
Last active April 27, 2017 11:48
Lecture3-2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryoppippi
ryoppippi / Lecture3-1.ipynb
Last active April 27, 2017 07:21
Numerical Method/Lecture3-1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryoppippi
ryoppippi / NL100_1.ipynb
Created April 16, 2017 08:27
自然言語処理100本ノック10-19 http://www.cl.ecei.tohoku.ac.jp/nlp100/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryoppippi
ryoppippi / NL100_0.ipynb
Last active April 16, 2017 07:53
自然言語処理100本ノック00-09 http://www.cl.ecei.tohoku.ac.jp/nlp100/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import UIKit
let array = ["ズン", "ドコ"]
var zun = 0
while true {
let a = Int(arc4random_uniform(2))
print(array[a])
if a == 0 {
zun += 1
}
else if a == 1 && zun == 4 {
@ryoppippi
ryoppippi / Euler18.swift
Created February 20, 2016 07:48
I solved https://projecteuler.net/problem=18 with the concept of DP!!
var cashe :Dictionary<String, Int> = [:]
func search (list: [[Int]], i:Int, j:Int) -> Int {
if cashe["\(i):\(j)"] != nil {
return cashe["\(i):\(j)"]!
}
if i > 14{
return 0
}
else {
@ryoppippi
ryoppippi / calculateNetPresentValue2.swift
Last active February 7, 2016 14:21
Calculate "net present value" for economics assignment
//: Playground - noun: a place where people can play
//:累乗をするための関数を定義する
func jyou(n : Double, x:Int) -> Double {
var ans = 1.0
for _ in 1...x{
ans *= n
}
return ans
}