This file contains hidden or 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% IEEE.bst %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Bibliography Syle file for articles according to IEEE instructions | |
% [email protected] <22-JUN-93> | |
% modified from unsrt.bib. Contributions by Richard H. Roy | |
ENTRY | |
{ address | |
author | |
booktitle | |
chapter |
This file contains hidden or 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 bash | |
. ./cmd.sh | |
. ./path.sh | |
# Train systems, | |
nj=30 # number of parallel jobs, | |
stage=0 | |
dsets="dev test" | |
. utils/parse_options.sh |
This file contains hidden or 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 bash | |
# Do not run the commented lines | |
# First git clone k2 and cd to inside it. | |
# Common steps | |
conda create -n k2 python=3.8 | |
conda activate k2 |
This file contains hidden or 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 argparse | |
parser = argparse.ArgumentParser(description='Process some integers.') | |
parser.add_argument('integers', metavar='N', type=int, nargs='+', | |
help='an integer for the accumulator') | |
parser.add_argument('--sum', dest='accumulate', action='store_const', | |
const=sum, default=max, | |
help='sum the integers (default: find the max)') | |
args = parser.parse_args() |
This file contains hidden or 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 unittest | |
class ImageUtilsTest(unittest.TestCase): | |
"""Testing image utilities: visualization and compression | |
""" | |
def setUp(self): | |
"""This method sets up objects for all the test cases. | |
""" | |
<code for loading data> |
This file contains hidden or 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
def validate_object(x): | |
"""This function validates an object x that is supposed to represent an object inside an image, and throws an exception on failure. Specifically it is checking that: | |
x['polygon'] is a list of >= 3 integer (x,y) pairs representing the corners of the polygon in clockwise or anticlockwise order. | |
""" | |
if type(x) != dict: | |
raise ValueError('dict type input required.') | |
if 'polygon' not in x: | |
raise ValueError('polygon object required.') |
This file contains hidden or 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 numpy as np | |
import pandas as pd | |
with open('./holographic.npz') as d: | |
indices = d['arr_0'] | |
X_train = d['arr_1'] | |
X_val = d['arr_2'] | |
y_train = d['arr_3'] | |
y_val = d['arr_4'] | |