Ejemplo n.º 1
0
def vd_ctl_bin_IR():
    args = {}

    args = basic(args)
    args = bs128(args)
    args = vd_bin_basic(args)

    args['exp_id'] = 'vd_ctl_bin_IR'
    args['task'] = 'IR'
    return args
Ejemplo n.º 2
0
def vd_ctl_bin():
    args = {}

    args = basic(args)
    args = bs128(args)
    args = vd_bin_basic(args)
    args = load_from_bin_IR(args)

    args['exp_id'] = 'vd_ctl_bin'
    args['kmeans_k'] = '10000'
    return args
Ejemplo n.º 3
0
def vd_ctl_IR_rdsz():
    args = {}

    args = basic(args)
    args = bs128(args)
    args = vd_basic(args)

    args['exp_id'] = 'vd_ctl_IR_rdsz'
    args['task'] = 'IR'
    args['train_prep'] = 'RandomSized'
    return args
Ejemplo n.º 4
0
def vd_fast_a4_LA_ssmN():
    args = {}

    args = basic(args)
    args = fast_bs(args)
    args = vd_basic_color(args)
    args = load_from_fast_IR(args)
    args = res18_la_one_bigk_ssmN(args)
    args = fast_a4(args)

    args['exp_id'] = 'vd_fast_a4_LA_ssmN'
    return args
Ejemplo n.º 5
0
def vd_fast_a4_color_IR():
    args = {}

    args = basic(args)
    args = fast_bs(args)
    args = vd_basic_color(args)
    args = fast_a4(args)

    args['exp_id'] = 'vd_fast_a4_color_IR'
    args['task'] = 'IR'
    args['lr_boundaries'] = '325011'
    return args
Ejemplo n.º 6
0
def vd_fast_color_IR():
    args = {}

    args = basic(args)
    args = fast_bs(args)
    args = vd_basic_color(args)

    args['exp_id'] = 'vd_fast_color_IR_fx'
    args['model_type'] = 'fast'
    args['task'] = 'IR'
    args['train_num_workers'] = 30
    return args
Ejemplo n.º 7
0
def vd_ctl_IR_color():
    args = {}

    args = basic(args)
    args = bs128(args)
    args = vd_basic(args)

    args['exp_id'] = 'vd_ctl_IR_color'
    args['task'] = 'IR'
    args['train_prep'] = 'ColorJitter'
    args['lr_boundaries'] = '690011,1070011'
    return args
Ejemplo n.º 8
0
def vd_vanilla3D_IR():
    args = {}

    args = basic(args)
    args = fast_bs(args)
    args = vd_basic_color(args)

    args['exp_id'] = 'vd_vanilla3D_IR'
    args['model_type'] = 'vanilla3D'
    args['task'] = 'IR'
    args['train_num_workers'] = 20
    args['val_num_workers'] = 10
    return args
Ejemplo n.º 9
0
'''
DON'T CHANGE ANYTHING IN THIS FILE
'''

import unittest
from basics import Basics as basic
# This creates an object with all the functions we created
b = basic()

class TestBasicMethods(unittest.TestCase):

    def test_addition(self):
        print('Test addition function')
        self.assertTrue(b.addition(1, 1) == 2)
        self.assertTrue(b.addition(-5, -5) == -10)

    def test_pythag(self):
        print('Test Pythagorean theorem function')
        self.assertTrue(b.pythagorean_theorem(b = 4, c = 5) == 3)
        self.assertTrue(b.pythagorean_theorem(a = 3, c = 5) == 4)
        self.assertTrue(b.pythagorean_theorem(a = 3, b = 4) == 5)
        self.assertTrue(b.pythagorean_theorem() == False)

    def test_string_count(self):
        print('Test string count function')
        self.assertTrue(b.string_count('abc acb abc bca cab abc', 'abc') == 3)
        self.assertTrue(b.string_count('abc acb abc bca cab abc', 'abasdfc') == 0)

    def test_min_value(self):
        print('Test min value function')
        self.assertTrue(b.min_value([5, 8, 2, 0, 4, 3, 2]) == 0)