{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.7.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-08-10T12:18:17.68422Z","iopub.execute_input":"2022-08-10T12:18:17.685111Z","iopub.status.idle":"2022-08-10T12:18:17.716683Z","shell.execute_reply.started":"2022-08-10T12:18:17.68501Z","shell.execute_reply":"2022-08-10T12:18:17.715214Z"},"trusted":true},"execution_count":1,"outputs":[{"name":"stdout","text":"/kaggle/input/amex-default-prediction/sample_submission.csv\n/kaggle/input/amex-default-prediction/train_data.csv\n/kaggle/input/amex-default-prediction/test_data.csv\n/kaggle/input/amex-default-prediction/train_labels.csv\n","output_type":"stream"}]},{"cell_type":"code","source":"#!apt-get remove swig","metadata":{"execution":{"iopub.status.busy":"2022-08-10T12:20:08.440741Z","iopub.execute_input":"2022-08-10T12:20:08.441369Z","iopub.status.idle":"2022-08-10T12:20:11.73002Z","shell.execute_reply.started":"2022-08-10T12:20:08.441308Z","shell.execute_reply":"2022-08-10T12:20:11.728506Z"},"trusted":true},"execution_count":3,"outputs":[{"name":"stdout","text":"Reading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nPackage 'swig' is not installed, so not removed\n0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.\n","output_type":"stream"}]},{"cell_type":"code","source":"#!apt-get install swig3.0 build-essential -y","metadata":{"execution":{"iopub.status.busy":"2022-08-10T12:20:31.006056Z","iopub.execute_input":"2022-08-10T12:20:31.00651Z","iopub.status.idle":"2022-08-10T12:20:39.047627Z","shell.execute_reply.started":"2022-08-10T12:20:31.006471Z","shell.execute_reply":"2022-08-10T12:20:39.045835Z"},"trusted":true},"execution_count":4,"outputs":[{"name":"stdout","text":"Reading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nbuild-essential is already the newest version (12.8ubuntu1.1).\nSuggested packages:\n  swig3.0-examples swig3.0-doc\nThe following NEW packages will be installed:\n  swig3.0\n0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.\nNeed to get 1109 kB of archives.\nAfter this operation, 5555 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 swig3.0 amd64 3.0.12-2.2ubuntu1 [1109 kB]\nFetched 1109 kB in 2s (508 kB/s)  \nSelecting previously unselected package swig3.0.\n(Reading database ... 106350 files and directories currently installed.)\nPreparing to unpack .../swig3.0_3.0.12-2.2ubuntu1_amd64.deb ...\nUnpacking swig3.0 (3.0.12-2.2ubuntu1) ...\nSetting up swig3.0 (3.0.12-2.2ubuntu1) ...\nProcessing triggers for man-db (2.9.1-1) ...\n","output_type":"stream"}]},{"cell_type":"code","source":"#!ln -s /usr/bin/swig3.0 /usr/bin/swig","metadata":{"execution":{"iopub.status.busy":"2022-08-10T12:21:18.641747Z","iopub.execute_input":"2022-08-10T12:21:18.642866Z","iopub.status.idle":"2022-08-10T12:21:19.773709Z","shell.execute_reply.started":"2022-08-10T12:21:18.642803Z","shell.execute_reply":"2022-08-10T12:21:19.772501Z"},"trusted":true},"execution_count":6,"outputs":[{"name":"stdout","text":"ln: failed to create symbolic link '/usr/bin/swig': File exists\n","output_type":"stream"}]},{"cell_type":"code","source":"#!apt-get install build-essential","metadata":{"execution":{"iopub.status.busy":"2022-08-10T12:21:41.761009Z","iopub.execute_input":"2022-08-10T12:21:41.761438Z","iopub.status.idle":"2022-08-10T12:21:44.604659Z","shell.execute_reply.started":"2022-08-10T12:21:41.761403Z","shell.execute_reply":"2022-08-10T12:21:44.603183Z"},"trusted":true},"execution_count":7,"outputs":[{"name":"stdout","text":"Reading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nbuild-essential is already the newest version (12.8ubuntu1.1).\n0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.\n","output_type":"stream"}]},{"cell_type":"code","source":"#!pip install --upgrade setuptools","metadata":{"execution":{"iopub.status.busy":"2022-08-10T12:22:10.560869Z","iopub.execute_input":"2022-08-10T12:22:10.561336Z","iopub.status.idle":"2022-08-10T12:22:41.895396Z","shell.execute_reply.started":"2022-08-10T12:22:10.561296Z","shell.execute_reply":"2022-08-10T12:22:41.893837Z"},"trusted":true},"execution_count":8,"outputs":[{"name":"stdout","text":"Requirement already satisfied: setuptools in /opt/conda/lib/python3.7/site-packages (59.8.0)\nCollecting setuptools\n  Downloading setuptools-63.4.2-py3-none-any.whl (1.2 MB)\n\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.2/1.2 MB\u001b[0m \u001b[31m1.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m0m\n\u001b[?25hInstalling collected packages: setuptools\n  Attempting uninstall: setuptools\n    Found existing installation: setuptools 59.8.0\n    Uninstalling setuptools-59.8.0:\n      Successfully uninstalled setuptools-59.8.0\n\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\nbeatrix-jupyterlab 3.1.7 requires google-cloud-bigquery-storage, which is not installed.\ncloud-tpu-client 0.10 requires google-api-python-client==1.8.0, but you have google-api-python-client 1.12.11 which is incompatible.\nallennlp 2.10.0 requires protobuf==3.20.0, but you have protobuf 3.19.4 which is incompatible.\u001b[0m\u001b[31m\n\u001b[0mSuccessfully installed setuptools-63.4.2\n\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n\u001b[0m","output_type":"stream"}]},{"cell_type":"code","source":"#!pip install auto-sklearn","metadata":{"execution":{"iopub.status.busy":"2022-08-10T12:23:00.561494Z","iopub.execute_input":"2022-08-10T12:23:00.56197Z","iopub.status.idle":"2022-08-10T12:23:41.79125Z","shell.execute_reply.started":"2022-08-10T12:23:00.561934Z","shell.execute_reply":"2022-08-10T12:23:41.789707Z"},"trusted":true},"execution_count":9,"outputs":[{"name":"stdout","text":"Collecting auto-sklearn\n  Downloading auto-sklearn-0.14.7.tar.gz (6.4 MB)\n\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m6.4/6.4 MB\u001b[0m \u001b[31m4.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m0m\n\u001b[?25h  Preparing metadata (setup.py) ... \u001b[?25ldone\n\u001b[?25hRequirement already satisfied: setuptools in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (63.4.2)\nRequirement already satisfied: typing_extensions in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (4.1.1)\nCollecting distro\n  Downloading distro-1.7.0-py3-none-any.whl (20 kB)\nRequirement already satisfied: numpy>=1.9.0 in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (1.21.6)\nRequirement already satisfied: scipy>=1.7.0 in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (1.7.3)\nRequirement already satisfied: joblib in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (1.0.1)\nCollecting scikit-learn<0.25.0,>=0.24.0\n  Downloading scikit_learn-0.24.2-cp37-cp37m-manylinux2010_x86_64.whl (22.3 MB)\n\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m22.3/22.3 MB\u001b[0m \u001b[31m11.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hRequirement already satisfied: dask>=2021.12 in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (2022.2.0)\nRequirement already satisfied: distributed>=2012.12 in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (2022.2.0)\nRequirement already satisfied: pyyaml in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (6.0)\nRequirement already satisfied: pandas>=1.0 in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (1.3.5)\nCollecting liac-arff\n  Downloading liac-arff-2.5.0.tar.gz (13 kB)\n  Preparing metadata (setup.py) ... \u001b[?25ldone\n\u001b[?25hRequirement already satisfied: threadpoolctl in /opt/conda/lib/python3.7/site-packages (from auto-sklearn) (3.1.0)\nCollecting ConfigSpace<0.5,>=0.4.21\n  Downloading ConfigSpace-0.4.21-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB)\n\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.3/4.3 MB\u001b[0m \u001b[31m18.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting pynisher<0.7,>=0.6.3\n  Downloading pynisher-0.6.4.tar.gz (11 kB)\n  Preparing metadata (setup.py) ... \u001b[?25ldone\n\u001b[?25hCollecting pyrfr<0.9,>=0.8.1\n  Downloading pyrfr-0.8.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB)\n\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.4/4.4 MB\u001b[0m \u001b[31m19.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting smac<1.3,>=1.2\n  Downloading smac-1.2.tar.gz (260 kB)\n\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m260.9/260.9 kB\u001b[0m \u001b[31m16.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25h  Preparing metadata (setup.py) ... \u001b[?25ldone\n\u001b[?25hRequirement already satisfied: cython in /opt/conda/lib/python3.7/site-packages (from ConfigSpace<0.5,>=0.4.21->auto-sklearn) (0.29.30)\nRequirement already satisfied: pyparsing in /opt/conda/lib/python3.7/site-packages (from ConfigSpace<0.5,>=0.4.21->auto-sklearn) (3.0.9)\nRequirement already satisfied: partd>=0.3.10 in /opt/conda/lib/python3.7/site-packages (from dask>=2021.12->auto-sklearn) (1.2.0)\nRequirement already satisfied: fsspec>=0.6.0 in /opt/conda/lib/python3.7/site-packages (from dask>=2021.12->auto-sklearn) (2022.5.0)\nRequirement already satisfied: packaging>=20.0 in /opt/conda/lib/python3.7/site-packages (from dask>=2021.12->auto-sklearn) (21.3)\nRequirement already satisfied: toolz>=0.8.2 in /opt/conda/lib/python3.7/site-packages (from dask>=2021.12->auto-sklearn) (0.11.2)\nRequirement already satisfied: cloudpickle>=1.1.1 in /opt/conda/lib/python3.7/site-packages (from dask>=2021.12->auto-sklearn) (2.1.0)\nRequirement already satisfied: msgpack>=0.6.0 in /opt/conda/lib/python3.7/site-packages (from distributed>=2012.12->auto-sklearn) (1.0.4)\nRequirement already satisfied: jinja2 in /opt/conda/lib/python3.7/site-packages (from distributed>=2012.12->auto-sklearn) (3.1.2)\nRequirement already satisfied: zict>=0.1.3 in /opt/conda/lib/python3.7/site-packages (from distributed>=2012.12->auto-sklearn) (2.2.0)\nRequirement already satisfied: tblib>=1.6.0 in /opt/conda/lib/python3.7/site-packages (from distributed>=2012.12->auto-sklearn) (1.7.0)\nRequirement already satisfied: tornado>=5 in /opt/conda/lib/python3.7/site-packages (from distributed>=2012.12->auto-sklearn) (6.1)\nRequirement already satisfied: sortedcontainers!=2.0.0,!=2.0.1 in /opt/conda/lib/python3.7/site-packages (from distributed>=2012.12->auto-sklearn) (2.4.0)\nRequirement already satisfied: psutil>=5.0 in /opt/conda/lib/python3.7/site-packages (from distributed>=2012.12->auto-sklearn) (5.9.1)\nRequirement already satisfied: click>=6.6 in /opt/conda/lib/python3.7/site-packages (from distributed>=2012.12->auto-sklearn) (8.0.4)\nRequirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas>=1.0->auto-sklearn) (2.8.2)\nRequirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas>=1.0->auto-sklearn) (2022.1)\nCollecting emcee>=3.0.0\n  Downloading emcee-3.1.2-py2.py3-none-any.whl (46 kB)\n\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m46.2/46.2 kB\u001b[0m \u001b[31m3.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hRequirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from click>=6.6->distributed>=2012.12->auto-sklearn) (4.12.0)\nRequirement already satisfied: locket in /opt/conda/lib/python3.7/site-packages (from partd>=0.3.10->dask>=2021.12->auto-sklearn) (1.0.0)\nRequirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas>=1.0->auto-sklearn) (1.16.0)\nRequirement already satisfied: heapdict in /opt/conda/lib/python3.7/site-packages (from zict>=0.1.3->distributed>=2012.12->auto-sklearn) (1.0.1)\nRequirement already satisfied: MarkupSafe>=2.0 in /opt/conda/lib/python3.7/site-packages (from jinja2->distributed>=2012.12->auto-sklearn) (2.0.1)\nRequirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->click>=6.6->distributed>=2012.12->auto-sklearn) (3.8.0)\nBuilding wheels for collected packages: auto-sklearn, pynisher, smac, liac-arff\n  Building wheel for auto-sklearn (setup.py) ... \u001b[?25ldone\n\u001b[?25h  Created wheel for auto-sklearn: filename=auto_sklearn-0.14.7-py3-none-any.whl size=6602870 sha256=113bf6d0e3b979336ed1669596f7540fe9584475ae2ad249d7b3191a2ae62f92\n  Stored in directory: /root/.cache/pip/wheels/ba/43/5c/2fbe6fd19e3af314cbc4aa808378068d8ddd6792064f4a2448\n  Building wheel for pynisher (setup.py) ... \u001b[?25ldone\n\u001b[?25h  Created wheel for pynisher: filename=pynisher-0.6.4-py3-none-any.whl size=7027 sha256=aecad381f939ccd6842e659175a0545f8abdaa6c0912cdfa3eff22162d325338\n  Stored in directory: /root/.cache/pip/wheels/42/71/95/7555ec3253e1ba8add72ae5febf1b015d297f3b73ba296d6f6\n  Building wheel for smac (setup.py) ... \u001b[?25ldone\n\u001b[?25h  Created wheel for smac: filename=smac-1.2-py3-none-any.whl size=215921 sha256=aa49edce2c7cb48a1449b6fa7de4e2bdf3867109dd3bfa51e4f5eb116740d734\n  Stored in directory: /root/.cache/pip/wheels/ad/95/67/6afc6b04d3715070c853d0a9d7c7b1fb822def38671dfbbb9f\n  Building wheel for liac-arff (setup.py) ... \u001b[?25ldone\n\u001b[?25h  Created wheel for liac-arff: filename=liac_arff-2.5.0-py3-none-any.whl size=11716 sha256=433baf0f7d0de2a3f0ebaa81d54cae69f20a2081bc926c380e3a7707f0ddbeb5\n  Stored in directory: /root/.cache/pip/wheels/1f/0f/15/332ca86cbebf25ddf98518caaf887945fbe1712b97a0f2493b\nSuccessfully built auto-sklearn pynisher smac liac-arff\nInstalling collected packages: pyrfr, pynisher, liac-arff, emcee, distro, scikit-learn, ConfigSpace, smac, auto-sklearn\n  Attempting uninstall: scikit-learn\n    Found existing installation: scikit-learn 1.0.2\n    Uninstalling scikit-learn-1.0.2:\n      Successfully uninstalled scikit-learn-1.0.2\n\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\nyellowbrick 1.4 requires scikit-learn>=1.0.0, but you have scikit-learn 0.24.2 which is incompatible.\npdpbox 0.2.1 requires matplotlib==3.1.1, but you have matplotlib 3.5.2 which is incompatible.\nmlxtend 0.20.0 requires scikit-learn>=1.0.2, but you have scikit-learn 0.24.2 which is incompatible.\nimbalanced-learn 0.9.0 requires scikit-learn>=1.0.1, but you have scikit-learn 0.24.2 which is incompatible.\ngplearn 0.4.2 requires scikit-learn>=1.0.2, but you have scikit-learn 0.24.2 which is incompatible.\nallennlp 2.10.0 requires protobuf==3.20.0, but you have protobuf 3.19.4 which is incompatible.\nallennlp 2.10.0 requires scikit-learn>=1.0.1, but you have scikit-learn 0.24.2 which is incompatible.\u001b[0m\u001b[31m\n\u001b[0mSuccessfully installed ConfigSpace-0.4.21 auto-sklearn-0.14.7 distro-1.7.0 emcee-3.1.2 liac-arff-2.5.0 pynisher-0.6.4 pyrfr-0.8.3 scikit-learn-0.24.2 smac-1.2\n\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n\u001b[0m","output_type":"stream"}]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}