Skip to content

Instantly share code, notes, and snippets.

View motokimura's full-sized avatar
🏠
Working from home

Motoki Kimura motokimura

🏠
Working from home
View GitHub Profile
@akitotakeki
akitotakeki / shake_shake_c10.py
Created January 28, 2018 06:31
Implementation of Shake-Shake regularization [X. Gastaldi, ICLR2017 workshop] by chainer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import chainer
from chainer import cuda
from chainer import configuration
import chainer.functions as F
import chainer.links as L
from chainer.initializers import normal
kit fox, Vulpes macrotis
English setter
Australian terrier
grey whale, gray whale, devilfish, Eschrichtius gibbosus, Eschrichtius robustus
lesser panda, red panda, panda, bear cat, cat bear, Ailurus fulgens
Egyptian cat
ibex, Capra ibex
Persian cat
cougar, puma, catamount, mountain lion, painter, panther, Felis concolor
gazelle
@corochann
corochann / train_mnist_schedule_lr.py
Last active July 15, 2022 15:09
Manual Scheduling of optimizer's learning rate with Chainer trainer
from __future__ import print_function
import argparse
import chainer
import chainer.functions as F
import chainer.links as L
from chainer import training
from chainer.optimizers import MomentumSGD, Adam
from chainer.training import extensions, Trainer
from chainer import serializers
@robintw
robintw / read_aeronet.py
Created July 17, 2016 10:30
Simple function to read AERONET data into a Pandas DataFrame
import pandas as pd
def read_aeronet(filename):
"""Read a given AERONET AOT data file, and return it as a dataframe.
This returns a DataFrame containing the AERONET data, with the index
set to the timestamp of the AERONET observations. Rows or columns
consisting entirely of missing data are removed. All other columns
are left as-is.
"""
@yrevar
yrevar / imagenet1000_clsidx_to_labels.txt
Last active November 8, 2024 06:50
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
@maeharin
maeharin / gist:4993397
Last active May 29, 2022 12:45
du 直下のディレクトリの総計のみ表示(サイズが大きい順)
du -sh ./* | sort -nr