#NEWLINE# def CalculateModelPredictions( self , inCoeffs , inDataCacheDictionary ) : #NEWLINE# #INDENT# x_in = inDataCacheDictionary [ 'X' ] #NEWLINE# b2 = inCoeffs [ 0 ] #NEWLINE# c1 = inCoeffs [ 1 ] #NEWLINE# d1 = inCoeffs [ 2 ] #NEWLINE# b1 = inCoeffs [ 3 ] #NEWLINE# c2 = inCoeffs [ 4 ] #NEWLINE# d2 = inCoeffs [ 5 ] #NEWLINE# q = inCoeffs [ 6 ] #NEWLINE# scale = inCoeffs [ 7 ] #NEWLINE# try : #NEWLINE# #INDENT# K = numpy . log ( ( numpy . exp ( ( ( b2 * c1 ) * d1 ) ) + numpy . exp ( ( ( b2 * d1 ) * x_in ) ) ) ) #NEWLINE# yII = ( ( b1 * x_in ) + ( K / d1 ) ) #NEWLINE# L = numpy . log ( ( numpy . exp ( ( ( b2 * c1 ) * d1 ) ) + numpy . exp ( ( ( b2 * c2 ) * d1 ) ) ) ) #NEWLINE# yIII = ( yII - ( numpy . log ( ( numpy . exp ( ( d2 * ( ( b1 * d2 ) + ( L / d1 ) ) ) ) + numpy . exp ( ( d2 * yII ) ) ) ) / d2 ) ) #NEWLINE# yII_0 = ( numpy . log ( ( numpy . exp ( ( ( b2 * c1 ) * d1 ) ) + 1.0 ) ) / d1 ) #NEWLINE# yIII_0 = ( yII_0 - ( numpy . log ( ( numpy . exp ( ( d2 * ( ( b1 * c2 ) + ( L / d1 ) ) ) ) + numpy . exp ( ( d2 * yII_0 ) ) ) ) / d2 ) ) #NEWLINE# temp = ( ( scale * ( yIII - yIII_0 ) ) + q ) #NEWLINE# return self . extendedVersionHandler . GetAdditionalModelPredictions ( temp , inCoeffs , inDataCacheDictionary , self ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return ( numpy . ones ( len ( inDataCacheDictionary [ 'DependentData' ] ) ) * 1e+300 )