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 | |
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 | |
"""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 | |
"""Create Model""" | |
import os | |
import numpy as np | |
import tensorflow as tf | |
import time | |
import cPickle as pickle |
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 Sample Sequence Data""" | |
import random | |
from cPickle import dump, HIGHEST_PROTOCOL | |
import tensorflow as tf | |
import json |
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
COVERAGE_DIR=${COVERAGE_DIR:-coverage} | |
REPORT_NAME=${REPORT_NAME:-coverage.xml} | |
author=$(git log --format='%an <%ae>' -1 $id_new | sed 's/\\/\\\\/g;s/\"/\\"/g') | |
message=$(git log --format=%s -1 $id_new | sed 's/\\/\\\\/g;s/\"/\\"/g') | |
latest="${COVERAGE_DIR}/${REPORT_NAME}" | |
[ -e "$COVERAGE_DIR" ] || mkdir "$COVERAGE_DIR" | |
cp "$1" "$latest" |
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
COVERAGE_DIR=${COVERAGE_DIR:-coverage} | |
REPORT_NAME=${REPORT_NAME:-coverage.xml} | |
author=$(git log --format='%an <%ae>' -1 $id_new | sed 's/\\/\\\\/g;s/\"/\\"/g') | |
message=$(git log --format=%s -1 $id_new | sed 's/\\/\\\\/g;s/\"/\\"/g') | |
latest="${COVERAGE_DIR}/${REPORT_NAME}" | |
[ -e "$COVERAGE_DIR" ] || mkdir "$COVERAGE_DIR" | |
cp "$1" "$latest" |
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
package com.example.sqlite; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.os.Handler; | |
import android.os.HandlerThread; | |
import android.os.Looper; | |
import com.example.sqlite.RbSQLiteHelper; |