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
#!/bin/sh | |
set -e | |
THIS_DIR=$(cd $(dirname $0); pwd) | |
IPA1=$1 | |
IPA2=$2 | |
TMP=${THIS_DIR}/.tmp | |
mkdir -p $TMP |
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
#! /bin/sh | |
# http://tinsuke.wordpress.com/2011/11/01/how-to-compile-and-use-tesseract-3-01-on-ios-sdk-5/ | |
# cd /usr/local/src | |
# mkdir Tesseact | |
# cd Tesseact | |
# wget "http://www.leptonica.com/source/leptonica-1.68.tar.gz" | |
# wget "http://tesseract-ocr.googlecode.com/files/tesseract-3.01.tar.gz" | |
# | |
# mkdir dependencies | |
# tar xzf leptonica-1.68.tar.gz |
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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: gunicorn_scweb | |
# Required-Start: $network $local_fs | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: SimpleCounter Web | |
# Description: Yumemi Inc. | |
#### END INIT INFO |
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
# coding: utf8 | |
""" | |
* VAT: https://arxiv.org/abs/1507.00677 | |
# 参考にしたCode | |
Original: https://github.com/fchollet/keras/blob/master/examples/mnist_cnn.py | |
VAT: https://github.com/musyoku/vat/blob/master/vat.py | |
results example | |
--------------- |
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
BASE_PATH=result/rnn/pad.ns-25.bs-20.nl-2.hs-20 sh rnn.sh --padding t --num_steps 25 --batch_size 20 --num_layers 2 --hidden_size 20 | |
# かなり良かった | |
BASE_PATH=result/rnn/pad.ns-25.bs-40.nl-2.hs-20 sh rnn.sh --padding t --num_steps 25 --batch_size 40 --num_layers 2 --hidden_size 20 | |
# 少し悪かった(2->eが多かったようだ) | |
BASE_PATH=result/rnn/nopad.ns-25.bs-40.nl-2.hs-20 sh rnn.sh --nopadding --num_steps 25 --batch_size 40 --num_layers 2 --hidden_size 20 | |
BASE_PATH=result/rnn/pad.ns-25.bs-100.nl-2.hs-20 sh rnn.sh --padding t --num_steps 25 --batch_size 100 --num_layers 2 --hidden_size 20 | |
BASE_PATH=result/rnn/nopad.ns-25.bs-100.nl-2.hs-20 sh rnn.sh --nopadding --num_steps 25 --batch_size 100 --num_layers 2 --hidden_size 20 |
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
#!/bin/sh | |
DATASET_PATH=${DATASET_PATH:-"sample/seq_dataset.pkl"} | |
BP="result/rnn/$(date '+%Y%m%d-%H%M%S')" | |
BASE_PATH=${BASE_PATH:-$BP} | |
MODEL_PATH="${BASE_PATH}/seq_model.pkl" | |
SAMPLING_PATH="${BASE_PATH}/seq_sample.txt" | |
FIGURE_PATH="${BASE_PATH}/figure.png" |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
"""Compare data distribution""" | |
import json | |
from itertools import chain | |
import cPickle as pickle | |
import tensorflow as tf | |
import pandas as pd |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
"""Sampling Sequence Data from model""" | |
import numpy as np | |
import tensorflow as tf | |
import json | |
import cPickle as pickle | |
import itertools as it | |
from rnnlib import PTBModel |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
from cPickle import load | |
import numpy as np | |
import tensorflow as tf | |
from tensorflow.models.rnn import rnn_cell, seq2seq | |
from scipy.stats import entropy | |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
"""Create Model""" | |
import os | |
import numpy as np | |
import tensorflow as tf | |
import time | |
import cPickle as pickle |
NewerOlder