Def seprateByClass (dataset) :
Seprate_dict={}
An info_dict={}
For the vector in the dataset:
If the vector [1] not in seprate_dict:
Seprate_dict [vector [1]]=[]
An info_dict [vector [1]]=0
Seprate_dict [vector [1]]. Append (vector)
An info_dict [vector [1]] +=1
Return seprate_dict, an info_dict