Skip to content

Instantly share code, notes, and snippets.

K.O. Hi-king

Block or report user

Report or block Hi-king

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Hi-king
Hi-king / plot.py
Created Jan 31, 2019
seabornで破線プロット
View plot.py
import numpy
import seaborn
import pandas
from matplotlib import pyplot
n = 100
x = numpy.linspace(0, 4, n)
y1 = numpy.sin(2 * numpy.pi * x)
y2 = numpy.cos(2 * numpy.pi * x)
@Hi-king
Hi-king / train.py
Last active Sep 17, 2015
Learning NeuralNet with chainer
View train.py
#!/usr/bin/env python
import random
import argparse
import numpy
import chainer
import chainer.optimizers
class SmallClassificationModel(chainer.FunctionSet):
def __init__(self):
@Hi-king
Hi-king / crop.py
Last active Jan 24, 2019
chainerで画像分類するための補助スクリプト
View crop.py
!/usr/bin/python
# -*- coding: utf-8 -*-
import cv2
import argparse
import os
import numpy
parser = argparse.ArgumentParser()
parser.add_argument("source_dir")
parser.add_argument("target_dir")
@Hi-king
Hi-king / file0.txt
Created Sep 2, 2013
.gitignoreでホワイトリストを使う ref: http://qiita.com/Hi-king/items/a8485557095692f1bf13
View file0.txt
## .gitignore ##
# ignore all
*
*/
# allow any
!*.py
!*.bash
View gist:5538864
// ==UserScript==
// @name gist_title
// @namespace gist
// @include http://gist.github.com/*
// @include https://gist.github.com/*
// @version 1
// ==/UserScript==
(function(){
var migiuetext = document.createElement("div");
You can’t perform that action at this time.