Update learning.py

balancing data for RFs needs numpy