athena.utils.hparam_test

Tests for hparam.

Module Contents

Classes

HParamsTest
class athena.utils.hparam_test.HParamsTest

Bases: tensorflow.test.TestCase

testEmpty(self)
testContains(self)
testSomeValues(self)
testWithPeriodInVariableName(self)
testSetFromMap(self)
testFunction(self)
testBoolParsing(self)
testBoolParsingFail(self)
testLists(self)
testParseValuesWithIndexAssigment1(self)

Assignment to an index position.

testParseValuesWithIndexAssigment1_IgnoreUnknown(self)

Assignment to an index position.

testParseValuesWithIndexAssigment2(self)

Assignment to multiple index positions.

testParseValuesWithIndexAssigment2_IgnoreUnknown(self)

Assignment to multiple index positions.

testParseValuesWithIndexAssigment3(self)

Assignment to index positions in multiple names.

testParseValuesWithIndexAssigment3_IgnoreUnknown(self)

Assignment to index positions in multiple names.

testParseValuesWithIndexAssigment4(self)

Assignment of index positions and scalars.

testParseValuesWithIndexAssigment4_IgnoreUnknown(self)

Assignment of index positions and scalars.

testParseValuesWithIndexAssigment5(self)

Different variable types.

testParseValuesWithIndexAssigment5_IgnoreUnknown(self)

Different variable types.

testParseValuesWithBadIndexAssigment1(self)

Reject assignment of list to variable type.

testParseValuesWithBadIndexAssigment1_IgnoreUnknown(self)

Reject assignment of list to variable type.

testParseValuesWithBadIndexAssigment2(self)

Reject if type missing.

testParseValuesWithBadIndexAssigment2_IgnoreUnknown(self)

Ignore missing type.

testParseValuesWithBadIndexAssigment3(self)

Reject type of the form name[index].

testParseValuesWithBadIndexAssigment3_IgnoreUnknown(self)

Ignore type of the form name[index].

testWithReusedVariables(self)
testJson(self)
testSetHParam(self)
testSetHParamListNonListMismatch(self)
testSetHParamTypeMismatch(self)
testGet(self)
testDel(self)
test_parse_dict(self)
test_append(self)