{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from vowpalwabbit import pyvw" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "ename": "ModuleNotFoundError", "evalue": "No module named 'sklearn'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0msklearn\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'sklearn'" ] } ], "source": [ "import sklearn" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Collecting scikit-learn==0.23.2\n", " Using cached scikit_learn-0.23.2-cp36-cp36m-manylinux1_x86_64.whl (6.8 MB)\n", "Requirement already satisfied: numpy>=1.13.3 in ./.myenv/miniconda/envs/my-custom-jupyter-kernel/lib/python3.6/site-packages (from scikit-learn==0.23.2) (1.19.4)\n", "Collecting joblib>=0.11\n", " Downloading joblib-1.0.0-py3-none-any.whl (302 kB)\n", "\u001b[K |████████████████████████████████| 302 kB 24.2 MB/s eta 0:00:01\n", "\u001b[?25hCollecting scipy>=0.19.1\n", " Using cached scipy-1.5.4-cp36-cp36m-manylinux1_x86_64.whl (25.9 MB)\n", "Requirement already satisfied: numpy>=1.13.3 in ./.myenv/miniconda/envs/my-custom-jupyter-kernel/lib/python3.6/site-packages (from scikit-learn==0.23.2) (1.19.4)\n", "Collecting threadpoolctl>=2.0.0\n", " Using cached threadpoolctl-2.1.0-py3-none-any.whl (12 kB)\n", "Installing collected packages: threadpoolctl, scipy, joblib, scikit-learn\n", "Successfully installed joblib-1.0.0 scikit-learn-0.23.2 scipy-1.5.4 threadpoolctl-2.1.0\n" ] } ], "source": [ "!pip install scikit-learn==0.23.2" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "import sklearn" ] } ], "metadata": { "kernelspec": { "display_name": "conda_my-custom-jupyter-kernel", "language": "python", "name": "conda_my-custom-jupyter-kernel" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.12" } }, "nbformat": 4, "nbformat_minor": 4 }