finish entropy functions for different types of dataset