Added function LearnWeakClassifier and g. LearnWeakClassifier learn the parameter of a weak classifier given a particular types of feature. Meanwhile g act as the weak classifier discriminant function