Home > other >  This code is made part of the pixels classification, bayesian decision for bosses to solve this sect
This code is made part of the pixels classification, bayesian decision for bosses to solve this sect

Time:10-11

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
  • Related