The base is now fixed to only accept "log", "log2" and "log10", which could avoid checking the base's numeric value. This is also what entropy library in R did