def get_class_weights(label_column):

	"""
	The function fetches for class weights from the data, 
	let :label_column: pandas series of string labels
	"""

	weights = {}
	counts = label_column.value_counts()
	weights[0] = (1/counts['4top'])*(len(label_column))/2.0
	weights[1] = (1/counts['ttbar'])*(len(label_column))/2.0
	weights[2] = (1/counts['ttbarHiggs'])*(len(label_column))/2.0
	weights[3] = (1/counts['ttbarW'])*(len(label_column))/2.0
	weights[4] = (1/counts['ttbarZ'])*(len(label_column))/2.0

	return weights