def cond_prob(x_train,y_train,feature_col,feature_val,label):
x_filtered = x_train[y_train==label]
numerator = np.sum(x_filtered[:,feature_col]==feature_val)
denominator = np.sum(y_train==label)
return numerator/float(denominator)
Can you please give me an example to run this peice of code? What values i can pass in this function?
Actually i am not sure what value to pass for feature_col and label to run this code independently.

