To predict whether a person will purchase a product on a specific combination of day,discount and free delivery using naive bayes classifier code example
Example: To predict whether a person will purchase a product on a specific combination of day,discount and free delivery using naive bayes classifier
# Conversiondf['label'] = df.label.map({'ham':0, 'spam':1})# Print dataset shapedf.shape()