Skip to content

Instantly share code, notes, and snippets.

View emakryo's full-sized avatar

Ryosuke Kamesawa emakryo

View GitHub Profile
#!/bin/bash
set -ex
# Download files
BENCHMARK_BIN=android_aarch64_benchmark_model
if [[ ! -f $BENCHMARK_BIN ]]; then
wget -O $BENCHMARK_BIN https://storage.googleapis.com/tensorflow-nightly-public/prod/tensorflow/release/lite/tools/nightly/latest/android_aarch64_benchmark_model
chmod 755 $BENCHMARK_BIN
fi
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# general code for experiments
import time
from datetime import datetime
from progressbar import ProgressBar
import pandas as pd
def main():
timeid = datetime.now().strftime('%Y%m%d%H%M%S')
countMax = 100
pb = ProgressBar(max_value=countMax)
# Import necessary packages
import os
import numpy as np
import pandas as pd
from sklearn.svm import SVC
from sklearn.model_selection import GridSearchCV
from sklearn import metrics
def load_data():
""" load data from CSV formats """
@emakryo
emakryo / ToDo.ipynb
Last active November 10, 2017 03:19
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import struct
import numpy as np
from sklearn.model_selection import GridSearchCV
from sklearn.svm import SVC
def parse(filename):
"""Parse data file created by getdata"""
with open(filename, "r") as f:
raw_data = [int(line.split()[1], 16) for line in f]
#!/usr/bin/env pythonw
import os
import sys
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from PyQt5.QtWidgets import QApplication, QWidget, QFileDialog