Supervised ML algorithm in less than 15 lines (Python)

Consider that you have data about 2 fruits – Apple and Oranges. You have their Weights and Textures. Weights are in grams and texture is either smooth or rough. These are called Features. You also must associate Features with Labels. In our case the label is Apple (denoted by ‘0’) and Orange (denoted by ‘1’). […]