def logbasechange(a, b):
 return (np.log(b) / np.log(a))

def logbasechange ( a , b ) : return ( np . log ( b ) / np . log ( a ) )
there is a one-to-one transformation of the entropy value from a log base b to a log base a : h_{b}(x)=log_{b}(a)[h_{a}(x)] returns log_{b}(a) .