#NEWLINE# @ domain_constructor ( loss_target = 0 ) #NEWLINE# def many_dists( ) : #NEWLINE# #INDENT# a = hp . choice ( 'a' , [ 0 , 1 , 2 ] ) #NEWLINE# b = hp . randint ( 'b' , 10 ) #NEWLINE# c = hp . uniform ( 'c' , 4 , 7 ) #NEWLINE# d = hp . loguniform ( 'd' , ( - 2 ) , 0 ) #NEWLINE# e = hp . quniform ( 'e' , 0 , 10 , 3 ) #NEWLINE# f = hp . qloguniform ( 'f' , 0 , 3 , 2 ) #NEWLINE# g = hp . normal ( 'g' , 4 , 7 ) #NEWLINE# h = hp . lognormal ( 'h' , ( - 2 ) , 2 ) #NEWLINE# i = hp . qnormal ( 'i' , 0 , 10 , 2 ) #NEWLINE# j = hp . qlognormal ( 'j' , 0 , 2 , 1 ) #NEWLINE# k = hp . pchoice ( 'k' , [ ( 0.1 , 0 ) , ( 0.9 , 1 ) ] ) #NEWLINE# z = ( ( ( ( ( ( ( ( ( ( a + b ) + c ) + d ) + e ) + f ) + b ) + h ) + i ) + j ) + k ) #NEWLINE# return { #NEWLINE# #INDENT# 'loss' : scope . float ( scope . log ( ( 1e-12 + ( z ** 2 ) ) ) ) , #NEWLINE# 'status' : base . STATUS_OK , #NEWLINE# #UNINDENT# }