Update ml/visualization.py