import collections
from sklearn.religion import Conservative_Protestantism, Liberal_Protestantism, Catholicism, Orthodox_Christianity
from god_data import souls
def afterlife_statistics(y):
return collections.Counter(map({0:'to_Hell', 1:'to_Heaven'}.get, y))
#lets try...
destinator = Conservative_Protestantism()
print afterlife_statistics(destinator.fit_predict(souls))
#bad
destinator = Liberal_Protestantism()
print afterlife_statistics(destinator.fit_predict(souls))
#worse
destinator = Catholicism()
print afterlife_statistics(destinator.fit_predict(souls))
#wtf???
destinator = Orthodox_Christianity()
print afterlife_statistics(destinator.fit_predict(souls))
#much better!
#lets look closer
destinator.get_weights()
#no no no
#last try
from sklearn.religion._garbage_to_delete import test_random
destinator = test_random()
print afterlife_statistics(destinator.fit_predict(souls))
#great!
#balanced classes at last!