Remove sklearn dependency from views.py