Skip to content

Instantly share code, notes, and snippets.

View IshitaTakeshi's full-sized avatar
💭
kernel panic

Takeshi Ishita IshitaTakeshi

💭
kernel panic
View GitHub Profile
*.pyc
*.diff
@IshitaTakeshi
IshitaTakeshi / digits_recognition.py
Last active September 25, 2015 12:05
高速、高精度、省メモリな線形分類器、SCW ref: http://qiita.com/IshitaTakeshi/items/3e41d3ec045422f7b8d8
from __future__ import division
import time
import numpy as np
from sklearn.datasets import load_digits, make_classification
from sklearn.svm import SVC
from matplotlib import pyplot
from scw import SCW1
@IshitaTakeshi
IshitaTakeshi / file1.txt
Created August 4, 2014 03:15
ガウス消去法をPythonで書いてみた ref: http://qiita.com/IshitaTakeshi/items/a89c700769148f1d4749
[ 1 2 0 -1]
[ 3 7 -1 3]
[ 2 2 1 2]
[ 1 2 0 -1]
[ 0 1 -1 6]
[ 2 2 1 2]
[ 1 2 0 -1]
[ 0 1 -1 6]
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# マインスイーパー
# コマンドライン引数にヨコ、タテ、地雷の数を渡してあげると動きます
# 入力を求められるので掘りたいマスの座標をスペースで区切って渡してあげてください
#
import sys
import random