What is a good way to calculate probabilities in a dataset of samples? Each sample is a measurement, that is usually 1 or 0. The goal is to calculate probabilities based on all feature rows.
Simple example dataset:
feature label dog 1 dog 0 dog 0 dog 0 cat 1 cat 0
feature result dog 0.25 cat 0.5
The real dataset has around 50 features.