Accepted codes of PG BATTLE 2022
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/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.
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
# 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) |
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
# 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 """ |
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.
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
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] |
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 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 | |
NewerOlder