{ "cells": [ { "cell_type": "markdown", "id": "f191f617-72b5-4aa3-a4a1-08bc01ad0681", "metadata": {}, "source": [ "## Car Predict ##\n", "* second hand vehicle prices according to features " ] }, { "cell_type": "code", "execution_count": 11, "id": "e9503d2a-396d-45e3-b59f-45a446b5bbc3", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "from sklearn.model_selection import train_test_split\n", "from sklearn.linear_model import LinearRegression\n", "from sklearn.metrics import r2_score, mean_squared_error\n", "from sklearn.compose import ColumnTransformer # Sütun Dönüşüm İşlemleri\n", "from sklearn.preprocessing import OneHotEncoder, StandardScaler # kategori - sayısaş dönüşüm ve ölçeklendirme\n", "from sklearn.pipeline import Pipeline # veri işleme hattı" ] }, { "cell_type": "code", "execution_count": 17, "id": "e76a64dd-33b8-40a6-b9f0-3a0a58b5467a", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: xlrd in c:\\users\\erayc\\anaconda3\\lib\\site-packages (2.0.1)\n" ] } ], "source": [ "!pip install xlrd" ] }, { "cell_type": "code", "execution_count": 19, "id": "b5b062be-ff68-4ed3-810f-d4c9e92b3653", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
PriceMileageMakeModelTrimTypeCylinderLiterDoorsCruiseSoundLeather
017314.1031298221BuickCenturySedan 4DSedan63.14111
117542.0360839135BuickCenturySedan 4DSedan63.14110
216218.84786213196BuickCenturySedan 4DSedan63.14110
316336.91314016342BuickCenturySedan 4DSedan63.14100
416339.17032419832BuickCenturySedan 4DSedan63.14101
.......................................
79916507.07026716229SaturnL SeriesL300 Sedan 4DSedan63.04100
80016175.95760419095SaturnL SeriesL300 Sedan 4DSedan63.04110
80115731.13289720484SaturnL SeriesL300 Sedan 4DSedan63.04110
80215118.89322825979SaturnL SeriesL300 Sedan 4DSedan63.04110
80313585.63680235662SaturnL SeriesL300 Sedan 4DSedan63.04100
\n", "

804 rows × 12 columns

\n", "
" ], "text/plain": [ " Price Mileage Make Model Trim Type Cylinder \\\n", "0 17314.103129 8221 Buick Century Sedan 4D Sedan 6 \n", "1 17542.036083 9135 Buick Century Sedan 4D Sedan 6 \n", "2 16218.847862 13196 Buick Century Sedan 4D Sedan 6 \n", "3 16336.913140 16342 Buick Century Sedan 4D Sedan 6 \n", "4 16339.170324 19832 Buick Century Sedan 4D Sedan 6 \n", ".. ... ... ... ... ... ... ... \n", "799 16507.070267 16229 Saturn L Series L300 Sedan 4D Sedan 6 \n", "800 16175.957604 19095 Saturn L Series L300 Sedan 4D Sedan 6 \n", "801 15731.132897 20484 Saturn L Series L300 Sedan 4D Sedan 6 \n", "802 15118.893228 25979 Saturn L Series L300 Sedan 4D Sedan 6 \n", "803 13585.636802 35662 Saturn L Series L300 Sedan 4D Sedan 6 \n", "\n", " Liter Doors Cruise Sound Leather \n", "0 3.1 4 1 1 1 \n", "1 3.1 4 1 1 0 \n", "2 3.1 4 1 1 0 \n", "3 3.1 4 1 0 0 \n", "4 3.1 4 1 0 1 \n", ".. ... ... ... ... ... \n", "799 3.0 4 1 0 0 \n", "800 3.0 4 1 1 0 \n", "801 3.0 4 1 1 0 \n", "802 3.0 4 1 1 0 \n", "803 3.0 4 1 0 0 \n", "\n", "[804 rows x 12 columns]" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df = pd.read_excel('cars.xls')\n", "df" ] }, { "cell_type": "code", "execution_count": 21, "id": "1e110d3e-edf0-4c7b-a6b6-ac8f5930050d", "metadata": {}, "outputs": [], "source": [ "# Data preprocessing" ] }, { "cell_type": "code", "execution_count": 23, "id": "edb61d8e-5c1c-4d87-b222-061e8010202d", "metadata": {}, "outputs": [], "source": [ "X = df.drop('Price', axis=1) # fiyata etki edenleri al\n", "y = df['Price'] # tahmin" ] }, { "cell_type": "code", "execution_count": 25, "id": "51d6ae52-8e4d-4501-9bc6-5647187429bd", "metadata": {}, "outputs": [], "source": [ "X_train, X_test , y_train, y_test = train_test_split(X,y, test_size = 0.2 , random_state = 42)" ] }, { "cell_type": "markdown", "id": "8c8a6f88-e37c-490a-945d-8c2140ce3f2d", "metadata": {}, "source": [ "# data preprocessing, standardization and with one hot encoding process automating" ] }, { "cell_type": "code", "execution_count": 30, "id": "713b7032-0ce3-4ea7-9a21-dbe39e0794c3", "metadata": {}, "outputs": [], "source": [ "preprocess = ColumnTransformer(\n", " transformers=[\n", " ('num', StandardScaler(),['Mileage','Cylinder','Liter','Doors']),\n", " ('cat', OneHotEncoder(),['Make','Model','Trim','Type'])\n", " ]\n", ")\n", " " ] }, { "cell_type": "code", "execution_count": 34, "id": "0bb76bfd-fed4-4beb-96ef-56e4a2e3092b", "metadata": {}, "outputs": [], "source": [ "#modeli tnaımladık\n", "my_model = LinearRegression()" ] }, { "cell_type": "code", "execution_count": 36, "id": "746038a4-71bb-46bb-870d-18061112c21b", "metadata": {}, "outputs": [], "source": [ "pipe = Pipeline(steps=[('preprocessor',preprocess),('model',my_model)])" ] }, { "cell_type": "code", "execution_count": 38, "id": "4f60e30f-5955-4207-9544-a97be0246621", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Pipeline(steps=[('preprocessor',\n",
       "                 ColumnTransformer(transformers=[('num', StandardScaler(),\n",
       "                                                  ['Mileage', 'Cylinder',\n",
       "                                                   'Liter', 'Doors']),\n",
       "                                                 ('cat', OneHotEncoder(),\n",
       "                                                  ['Make', 'Model', 'Trim',\n",
       "                                                   'Type'])])),\n",
       "                ('model', LinearRegression())])
In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.
" ], "text/plain": [ "Pipeline(steps=[('preprocessor',\n", " ColumnTransformer(transformers=[('num', StandardScaler(),\n", " ['Mileage', 'Cylinder',\n", " 'Liter', 'Doors']),\n", " ('cat', OneHotEncoder(),\n", " ['Make', 'Model', 'Trim',\n", " 'Type'])])),\n", " ('model', LinearRegression())])" ] }, "execution_count": 38, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pipe.fit(X_train,y_train)" ] }, { "cell_type": "code", "execution_count": 40, "id": "ed17767e-513f-43d2-b60b-27748d0a2836", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "MSE 835.100716728648\n", "R2 0.9912072828879327\n" ] } ], "source": [ "y_pred = pipe.predict(X_test)\n", "print('MSE',mean_squared_error(y_test,y_pred)**0.5)\n", "print('R2', r2_score(y_test,y_pred))\n" ] }, { "cell_type": "code", "execution_count": 50, "id": "2636e539-d6b3-4249-89c7-42b0413e70ed", "metadata": {}, "outputs": [], "source": [ "#istersek veri setinin tamamıyla tekrar eğitim yapabiliriz.\n", "#pipe.fit(X,y)" ] }, { "cell_type": "markdown", "id": "30719e98-9aad-4f7f-9baa-88ea94894e7e", "metadata": {}, "source": [ "# streamlit ile modeli Deploy etme / Yayma / Kullanıma Sunma/ Mlops" ] }, { "cell_type": "code", "execution_count": 45, "id": "54b5657e-b40c-484c-a1d2-e1c52154a7fe", "metadata": { "collapsed": true, "jupyter": { "outputs_hidden": true } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Collecting streamlit\n", " Obtaining dependency information for streamlit from https://files.pythonhosted.org/packages/0e/86/69fdac2ec6852304bda08e5af5b72dfa6e74dc0b3cef0d7c1e19994388ae/streamlit-1.35.0-py2.py3-none-any.whl.metadata\n", " Downloading streamlit-1.35.0-py2.py3-none-any.whl.metadata (8.5 kB)\n", "Requirement already satisfied: altair<6,>=4.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (5.3.0)\n", "Collecting blinker<2,>=1.0.0 (from streamlit)\n", " Obtaining dependency information for blinker<2,>=1.0.0 from https://files.pythonhosted.org/packages/bb/2a/10164ed1f31196a2f7f3799368a821765c62851ead0e630ab52b8e14b4d0/blinker-1.8.2-py3-none-any.whl.metadata\n", " Using cached blinker-1.8.2-py3-none-any.whl.metadata (1.6 kB)\n", "Collecting cachetools<6,>=4.0 (from streamlit)\n", " Obtaining dependency information for cachetools<6,>=4.0 from https://files.pythonhosted.org/packages/fb/2b/a64c2d25a37aeb921fddb929111413049fc5f8b9a4c1aefaffaafe768d54/cachetools-5.3.3-py3-none-any.whl.metadata\n", " Downloading cachetools-5.3.3-py3-none-any.whl.metadata (5.3 kB)\n", "Requirement already satisfied: click<9,>=7.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (8.1.7)\n", "Requirement already satisfied: numpy<2,>=1.19.3 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (1.26.4)\n", "Requirement already satisfied: packaging<25,>=16.8 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (23.2)\n", "Requirement already satisfied: pandas<3,>=1.3.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (2.0.3)\n", "Requirement already satisfied: pillow<11,>=7.1.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (10.3.0)\n", "Requirement already satisfied: protobuf<5,>=3.20 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (4.21.12)\n", "Requirement already satisfied: pyarrow>=7.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (14.0.2)\n", "Requirement already satisfied: requests<3,>=2.27 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (2.32.2)\n", "Collecting rich<14,>=10.14.0 (from streamlit)\n", " Obtaining dependency information for rich<14,>=10.14.0 from https://files.pythonhosted.org/packages/87/67/a37f6214d0e9fe57f6ae54b2956d550ca8365857f42a1ce0392bb21d9410/rich-13.7.1-py3-none-any.whl.metadata\n", " Downloading rich-13.7.1-py3-none-any.whl.metadata (18 kB)\n", "Collecting tenacity<9,>=8.1.0 (from streamlit)\n", " Obtaining dependency information for tenacity<9,>=8.1.0 from https://files.pythonhosted.org/packages/61/a1/6bb0cbebefb23641f068bb58a2bc56da9beb2b1c550242e3c540b37698f3/tenacity-8.3.0-py3-none-any.whl.metadata\n", " Downloading tenacity-8.3.0-py3-none-any.whl.metadata (1.2 kB)\n", "Requirement already satisfied: toml<2,>=0.10.1 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (0.10.2)\n", "Requirement already satisfied: typing-extensions<5,>=4.3.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (4.11.0)\n", "Collecting gitpython!=3.1.19,<4,>=3.0.7 (from streamlit)\n", " Obtaining dependency information for gitpython!=3.1.19,<4,>=3.0.7 from https://files.pythonhosted.org/packages/e9/bd/cc3a402a6439c15c3d4294333e13042b915bbeab54edc457c723931fed3f/GitPython-3.1.43-py3-none-any.whl.metadata\n", " Downloading GitPython-3.1.43-py3-none-any.whl.metadata (13 kB)\n", "Collecting pydeck<1,>=0.8.0b4 (from streamlit)\n", " Obtaining dependency information for pydeck<1,>=0.8.0b4 from https://files.pythonhosted.org/packages/ab/4c/b888e6cf58bd9db9c93f40d1c6be8283ff49d88919231afe93a6bcf61626/pydeck-0.9.1-py2.py3-none-any.whl.metadata\n", " Downloading pydeck-0.9.1-py2.py3-none-any.whl.metadata (4.1 kB)\n", "Requirement already satisfied: tornado<7,>=6.0.3 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from streamlit) (6.3.3)\n", "Collecting watchdog>=2.1.5 (from streamlit)\n", " Obtaining dependency information for watchdog>=2.1.5 from https://files.pythonhosted.org/packages/85/e0/2a9f43008902427b5f074c497705d6ef8f815c85d4bc25fbf83f720a6159/watchdog-4.0.1-py3-none-win_amd64.whl.metadata\n", " Downloading watchdog-4.0.1-py3-none-win_amd64.whl.metadata (37 kB)\n", "Requirement already satisfied: jinja2 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from altair<6,>=4.0->streamlit) (3.1.4)\n", "Requirement already satisfied: jsonschema>=3.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from altair<6,>=4.0->streamlit) (4.19.2)\n", "Requirement already satisfied: toolz in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from altair<6,>=4.0->streamlit) (0.12.0)\n", "Requirement already satisfied: colorama in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from click<9,>=7.0->streamlit) (0.4.6)\n", "Collecting gitdb<5,>=4.0.1 (from gitpython!=3.1.19,<4,>=3.0.7->streamlit)\n", " Obtaining dependency information for gitdb<5,>=4.0.1 from https://files.pythonhosted.org/packages/fd/5b/8f0c4a5bb9fd491c277c21eff7ccae71b47d43c4446c9d0c6cff2fe8c2c4/gitdb-4.0.11-py3-none-any.whl.metadata\n", " Downloading gitdb-4.0.11-py3-none-any.whl.metadata (1.2 kB)\n", "Requirement already satisfied: python-dateutil>=2.8.2 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from pandas<3,>=1.3.0->streamlit) (2.9.0.post0)\n", "Requirement already satisfied: pytz>=2020.1 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from pandas<3,>=1.3.0->streamlit) (2024.1)\n", "Requirement already satisfied: tzdata>=2022.1 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from pandas<3,>=1.3.0->streamlit) (2023.3)\n", "Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from requests<3,>=2.27->streamlit) (2.0.4)\n", "Requirement already satisfied: idna<4,>=2.5 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from requests<3,>=2.27->streamlit) (3.7)\n", "Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from requests<3,>=2.27->streamlit) (2.0.3)\n", "Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from requests<3,>=2.27->streamlit) (2024.6.2)\n", "Collecting markdown-it-py>=2.2.0 (from rich<14,>=10.14.0->streamlit)\n", " Obtaining dependency information for markdown-it-py>=2.2.0 from https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl.metadata\n", " Downloading markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)\n", "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from rich<14,>=10.14.0->streamlit) (2.15.1)\n", "Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython!=3.1.19,<4,>=3.0.7->streamlit)\n", " Obtaining dependency information for smmap<6,>=3.0.1 from https://files.pythonhosted.org/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl.metadata\n", " Downloading smmap-5.0.1-py3-none-any.whl.metadata (4.3 kB)\n", "Requirement already satisfied: MarkupSafe>=2.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from jinja2->altair<6,>=4.0->streamlit) (2.1.3)\n", "Requirement already satisfied: attrs>=22.2.0 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit) (23.1.0)\n", "Requirement already satisfied: jsonschema-specifications>=2023.03.6 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit) (2023.7.1)\n", "Requirement already satisfied: referencing>=0.28.4 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit) (0.30.2)\n", "Requirement already satisfied: rpds-py>=0.7.1 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit) (0.10.6)\n", "Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich<14,>=10.14.0->streamlit)\n", " Obtaining dependency information for mdurl~=0.1 from https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl.metadata\n", " Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)\n", "Requirement already satisfied: six>=1.5 in c:\\users\\erayc\\anaconda3\\lib\\site-packages (from python-dateutil>=2.8.2->pandas<3,>=1.3.0->streamlit) (1.16.0)\n", "Downloading streamlit-1.35.0-py2.py3-none-any.whl (8.6 MB)\n", " ---------------------------------------- 0.0/8.6 MB ? eta -:--:--\n", " ---------------------------------------- 0.0/8.6 MB 1.4 MB/s eta 0:00:07\n", " ---------------------------------------- 0.1/8.6 MB 919.0 kB/s eta 0:00:10\n", " ---------------------------------------- 0.1/8.6 MB 919.0 kB/s eta 0:00:10\n", " --------------------------------------- 0.2/8.6 MB 919.0 kB/s eta 0:00:10\n", " --------------------------------------- 0.2/8.6 MB 958.4 kB/s eta 0:00:09\n", " --------------------------------------- 0.2/8.6 MB 958.4 kB/s eta 0:00:09\n", " - -------------------------------------- 0.2/8.6 MB 801.7 kB/s eta 0:00:11\n", " - -------------------------------------- 0.3/8.6 MB 780.5 kB/s eta 0:00:11\n", " - -------------------------------------- 0.3/8.6 MB 780.5 kB/s eta 0:00:11\n", " - -------------------------------------- 0.3/8.6 MB 780.5 kB/s eta 0:00:11\n", " - -------------------------------------- 0.3/8.6 MB 611.3 kB/s eta 0:00:14\n", " - -------------------------------------- 0.3/8.6 MB 611.3 kB/s eta 0:00:14\n", " - -------------------------------------- 0.3/8.6 MB 534.4 kB/s eta 0:00:16\n", " - -------------------------------------- 0.3/8.6 MB 534.4 kB/s eta 0:00:16\n", " - -------------------------------------- 0.4/8.6 MB 594.3 kB/s eta 0:00:14\n", " -- ------------------------------------- 0.5/8.6 MB 640.9 kB/s eta 0:00:13\n", " -- ------------------------------------- 0.5/8.6 MB 640.9 kB/s eta 0:00:13\n", " -- ------------------------------------- 0.5/8.6 MB 581.3 kB/s eta 0:00:14\n", " -- ------------------------------------- 0.5/8.6 MB 618.8 kB/s eta 0:00:14\n", " -- ------------------------------------- 0.6/8.6 MB 610.8 kB/s eta 0:00:14\n", " --- ------------------------------------ 0.7/8.6 MB 698.4 kB/s eta 0:00:12\n", " --- ------------------------------------ 0.7/8.6 MB 686.1 kB/s eta 0:00:12\n", " --- ------------------------------------ 0.7/8.6 MB 686.1 kB/s eta 0:00:12\n", " --- ------------------------------------ 0.7/8.6 MB 684.6 kB/s eta 0:00:12\n", " --- ------------------------------------ 0.8/8.6 MB 691.8 kB/s eta 0:00:12\n", " --- ------------------------------------ 0.8/8.6 MB 691.8 kB/s eta 0:00:12\n", " --- ------------------------------------ 0.8/8.6 MB 691.8 kB/s eta 0:00:12\n", " ---- ----------------------------------- 0.9/8.6 MB 695.5 kB/s eta 0:00:12\n", " ---- ----------------------------------- 0.9/8.6 MB 695.5 kB/s eta 0:00:12\n", " ---- ----------------------------------- 1.0/8.6 MB 730.9 kB/s eta 0:00:11\n", " ---- ----------------------------------- 1.1/8.6 MB 750.2 kB/s eta 0:00:11\n", " ----- ---------------------------------- 1.1/8.6 MB 740.0 kB/s eta 0:00:11\n", " ----- ---------------------------------- 1.1/8.6 MB 745.2 kB/s eta 0:00:11\n", " ----- ---------------------------------- 1.1/8.6 MB 745.2 kB/s eta 0:00:11\n", " ----- ---------------------------------- 1.1/8.6 MB 745.2 kB/s eta 0:00:11\n", " ----- ---------------------------------- 1.1/8.6 MB 745.2 kB/s eta 0:00:11\n", " ----- ---------------------------------- 1.1/8.6 MB 745.2 kB/s eta 0:00:11\n", " ----- ---------------------------------- 1.1/8.6 MB 745.2 kB/s eta 0:00:11\n", " ----- ---------------------------------- 1.1/8.6 MB 745.2 kB/s eta 0:00:11\n", " ----- ---------------------------------- 1.1/8.6 MB 627.3 kB/s eta 0:00:12\n", " ----- ---------------------------------- 1.1/8.6 MB 627.3 kB/s eta 0:00:12\n", " ----- ---------------------------------- 1.2/8.6 MB 602.0 kB/s eta 0:00:13\n", " ----- ---------------------------------- 1.2/8.6 MB 613.2 kB/s eta 0:00:13\n", " ----- ---------------------------------- 1.2/8.6 MB 613.2 kB/s eta 0:00:13\n", " ----- ---------------------------------- 1.3/8.6 MB 615.3 kB/s eta 0:00:12\n", " ------ --------------------------------- 1.3/8.6 MB 607.2 kB/s eta 0:00:12\n", " ------ --------------------------------- 1.4/8.6 MB 622.2 kB/s eta 0:00:12\n", " ------ --------------------------------- 1.4/8.6 MB 646.1 kB/s eta 0:00:12\n", " ------ --------------------------------- 1.4/8.6 MB 646.1 kB/s eta 0:00:12\n", " ------ --------------------------------- 1.4/8.6 MB 646.1 kB/s eta 0:00:12\n", " ------ --------------------------------- 1.5/8.6 MB 633.4 kB/s eta 0:00:12\n", " ------ --------------------------------- 1.5/8.6 MB 633.4 kB/s eta 0:00:12\n", " ------ --------------------------------- 1.5/8.6 MB 633.4 kB/s eta 0:00:12\n", " ------ --------------------------------- 1.5/8.6 MB 633.4 kB/s eta 0:00:12\n", " ------- -------------------------------- 1.5/8.6 MB 606.9 kB/s eta 0:00:12\n", " ------- -------------------------------- 1.6/8.6 MB 615.1 kB/s eta 0:00:12\n", " ------- -------------------------------- 1.6/8.6 MB 608.4 kB/s eta 0:00:12\n", " ------- -------------------------------- 1.6/8.6 MB 608.4 kB/s eta 0:00:12\n", " ------- -------------------------------- 1.6/8.6 MB 598.8 kB/s eta 0:00:12\n", " ------- -------------------------------- 1.7/8.6 MB 610.5 kB/s eta 0:00:12\n", " ------- -------------------------------- 1.7/8.6 MB 610.5 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.7/8.6 MB 601.3 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.7/8.6 MB 601.3 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.7/8.6 MB 601.3 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.7/8.6 MB 582.9 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.8/8.6 MB 588.1 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.8/8.6 MB 598.6 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.9/8.6 MB 596.8 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.9/8.6 MB 594.4 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.9/8.6 MB 594.4 kB/s eta 0:00:12\n", " -------- ------------------------------- 1.9/8.6 MB 594.4 kB/s eta 0:00:12\n", " --------- ------------------------------ 2.0/8.6 MB 590.1 kB/s eta 0:00:12\n", " --------- ------------------------------ 2.0/8.6 MB 590.1 kB/s eta 0:00:12\n", " --------- ------------------------------ 2.0/8.6 MB 601.1 kB/s eta 0:00:11\n", " ---------- ----------------------------- 2.2/8.6 MB 628.7 kB/s eta 0:00:11\n", " ---------- ----------------------------- 2.2/8.6 MB 637.8 kB/s eta 0:00:10\n", " ---------- ----------------------------- 2.3/8.6 MB 641.1 kB/s eta 0:00:10\n", " ----------- ---------------------------- 2.4/8.6 MB 672.4 kB/s eta 0:00:10\n", " ----------- ---------------------------- 2.5/8.6 MB 678.1 kB/s eta 0:00:10\n", " ------------ --------------------------- 2.6/8.6 MB 708.2 kB/s eta 0:00:09\n", " ------------ --------------------------- 2.7/8.6 MB 719.0 kB/s eta 0:00:09\n", " ------------ --------------------------- 2.7/8.6 MB 719.0 kB/s eta 0:00:09\n", " ------------ --------------------------- 2.8/8.6 MB 716.9 kB/s eta 0:00:09\n", " ------------ --------------------------- 2.8/8.6 MB 716.9 kB/s eta 0:00:09\n", " ------------ --------------------------- 2.8/8.6 MB 716.9 kB/s eta 0:00:09\n", " ------------ --------------------------- 2.8/8.6 MB 716.9 kB/s eta 0:00:09\n", " ------------- -------------------------- 2.8/8.6 MB 703.9 kB/s eta 0:00:09\n", " ------------- -------------------------- 2.8/8.6 MB 703.9 kB/s eta 0:00:09\n", " ------------- -------------------------- 2.9/8.6 MB 707.8 kB/s eta 0:00:09\n", " ------------- -------------------------- 2.9/8.6 MB 707.8 kB/s eta 0:00:09\n", " ------------- -------------------------- 3.0/8.6 MB 711.4 kB/s eta 0:00:08\n", " -------------- ------------------------- 3.0/8.6 MB 716.0 kB/s eta 0:00:08\n", " -------------- ------------------------- 3.0/8.6 MB 716.0 kB/s eta 0:00:08\n", " -------------- ------------------------- 3.0/8.6 MB 716.0 kB/s eta 0:00:08\n", " -------------- ------------------------- 3.1/8.6 MB 704.4 kB/s eta 0:00:08\n", " -------------- ------------------------- 3.1/8.6 MB 704.4 kB/s eta 0:00:08\n", " -------------- ------------------------- 3.2/8.6 MB 703.4 kB/s eta 0:00:08\n", " --------------- ------------------------ 3.3/8.6 MB 718.7 kB/s eta 0:00:08\n", " --------------- ------------------------ 3.3/8.6 MB 718.7 kB/s eta 0:00:08\n", " --------------- ------------------------ 3.4/8.6 MB 728.9 kB/s eta 0:00:08\n", " --------------- ------------------------ 3.4/8.6 MB 728.0 kB/s eta 0:00:08\n", " ---------------- ----------------------- 3.5/8.6 MB 736.3 kB/s eta 0:00:07\n", " ---------------- ----------------------- 3.6/8.6 MB 754.5 kB/s eta 0:00:07\n", " ---------------- ----------------------- 3.6/8.6 MB 754.5 kB/s eta 0:00:07\n", " ----------------- ---------------------- 3.8/8.6 MB 773.4 kB/s eta 0:00:07\n", " ----------------- ---------------------- 3.8/8.6 MB 781.4 kB/s eta 0:00:07\n", " ----------------- ---------------------- 3.8/8.6 MB 781.4 kB/s eta 0:00:07\n", " ----------------- ---------------------- 3.9/8.6 MB 775.3 kB/s eta 0:00:07\n", " ------------------ --------------------- 3.9/8.6 MB 777.5 kB/s eta 0:00:06\n", " ------------------ --------------------- 4.0/8.6 MB 787.2 kB/s eta 0:00:06\n", " ------------------ --------------------- 4.1/8.6 MB 791.7 kB/s eta 0:00:06\n", " ------------------ --------------------- 4.1/8.6 MB 791.7 kB/s eta 0:00:06\n", " ------------------ --------------------- 4.1/8.6 MB 791.7 kB/s eta 0:00:06\n", " ------------------- -------------------- 4.2/8.6 MB 789.6 kB/s eta 0:00:06\n", " -------------------- ------------------- 4.3/8.6 MB 813.5 kB/s eta 0:00:06\n", " -------------------- ------------------- 4.4/8.6 MB 823.6 kB/s eta 0:00:06\n", " -------------------- ------------------- 4.4/8.6 MB 824.9 kB/s eta 0:00:06\n", " --------------------- ------------------ 4.5/8.6 MB 825.7 kB/s eta 0:00:05\n", " --------------------- ------------------ 4.6/8.6 MB 832.8 kB/s eta 0:00:05\n", " --------------------- ------------------ 4.6/8.6 MB 832.8 kB/s eta 0:00:05\n", " --------------------- ------------------ 4.6/8.6 MB 827.4 kB/s eta 0:00:05\n", " --------------------- ------------------ 4.6/8.6 MB 827.4 kB/s eta 0:00:05\n", " --------------------- ------------------ 4.6/8.6 MB 827.4 kB/s eta 0:00:05\n", " --------------------- ------------------ 4.7/8.6 MB 810.3 kB/s eta 0:00:05\n", " --------------------- ------------------ 4.7/8.6 MB 817.4 kB/s eta 0:00:05\n", " --------------------- ------------------ 4.7/8.6 MB 817.4 kB/s eta 0:00:05\n", " ---------------------- ----------------- 4.8/8.6 MB 807.0 kB/s eta 0:00:05\n", " ---------------------- ----------------- 4.8/8.6 MB 808.4 kB/s eta 0:00:05\n", " ---------------------- ----------------- 4.9/8.6 MB 811.4 kB/s eta 0:00:05\n", " ---------------------- ----------------- 4.9/8.6 MB 808.6 kB/s eta 0:00:05\n", " ----------------------- ---------------- 5.0/8.6 MB 826.0 kB/s eta 0:00:05\n", " ----------------------- ---------------- 5.1/8.6 MB 836.4 kB/s eta 0:00:05\n", " ------------------------ --------------- 5.2/8.6 MB 850.6 kB/s eta 0:00:04\n", " ------------------------ --------------- 5.2/8.6 MB 850.6 kB/s eta 0:00:04\n", " ------------------------ --------------- 5.3/8.6 MB 847.6 kB/s eta 0:00:04\n", " ------------------------- -------------- 5.5/8.6 MB 870.0 kB/s eta 0:00:04\n", " ------------------------- -------------- 5.5/8.6 MB 872.2 kB/s eta 0:00:04\n", " ------------------------- -------------- 5.5/8.6 MB 872.2 kB/s eta 0:00:04\n", " -------------------------- ------------- 5.6/8.6 MB 871.8 kB/s eta 0:00:04\n", " -------------------------- ------------- 5.7/8.6 MB 880.7 kB/s eta 0:00:04\n", " -------------------------- ------------- 5.8/8.6 MB 886.9 kB/s eta 0:00:04\n", " --------------------------- ------------ 5.9/8.6 MB 888.9 kB/s eta 0:00:04\n", " --------------------------- ------------ 5.9/8.6 MB 890.4 kB/s eta 0:00:04\n", " ---------------------------- ----------- 6.0/8.6 MB 903.1 kB/s eta 0:00:03\n", " ---------------------------- ----------- 6.1/8.6 MB 901.3 kB/s eta 0:00:03\n", " ---------------------------- ----------- 6.1/8.6 MB 899.6 kB/s eta 0:00:03\n", " ---------------------------- ----------- 6.2/8.6 MB 908.0 kB/s eta 0:00:03\n", " ---------------------------- ----------- 6.2/8.6 MB 908.0 kB/s eta 0:00:03\n", " ----------------------------- ---------- 6.3/8.6 MB 911.5 kB/s eta 0:00:03\n", " ----------------------------- ---------- 6.4/8.6 MB 918.2 kB/s eta 0:00:03\n", " ----------------------------- ---------- 6.4/8.6 MB 919.3 kB/s eta 0:00:03\n", " ------------------------------ --------- 6.5/8.6 MB 926.3 kB/s eta 0:00:03\n", " ------------------------------- -------- 6.7/8.6 MB 946.2 kB/s eta 0:00:02\n", " ------------------------------- -------- 6.8/8.6 MB 957.9 kB/s eta 0:00:02\n", " ------------------------------- -------- 6.8/8.6 MB 957.9 kB/s eta 0:00:02\n", " ------------------------------- -------- 6.8/8.6 MB 957.9 kB/s eta 0:00:02\n", " ------------------------------- -------- 6.8/8.6 MB 957.9 kB/s eta 0:00:02\n", " -------------------------------- ------- 6.9/8.6 MB 944.4 kB/s eta 0:00:02\n", " -------------------------------- ------- 7.0/8.6 MB 945.4 kB/s eta 0:00:02\n", " -------------------------------- ------- 7.0/8.6 MB 948.5 kB/s eta 0:00:02\n", " --------------------------------- ------ 7.1/8.6 MB 953.4 kB/s eta 0:00:02\n", " --------------------------------- ------ 7.1/8.6 MB 953.4 kB/s eta 0:00:02\n", " --------------------------------- ------ 7.1/8.6 MB 943.0 kB/s eta 0:00:02\n", " --------------------------------- ------ 7.2/8.6 MB 950.6 kB/s eta 0:00:02\n", " --------------------------------- ------ 7.2/8.6 MB 946.8 kB/s eta 0:00:02\n", " --------------------------------- ------ 7.3/8.6 MB 947.1 kB/s eta 0:00:02\n", " ---------------------------------- ----- 7.3/8.6 MB 949.8 kB/s eta 0:00:02\n", " ---------------------------------- ----- 7.3/8.6 MB 949.8 kB/s eta 0:00:02\n", " ---------------------------------- ----- 7.3/8.6 MB 949.8 kB/s eta 0:00:02\n", " ---------------------------------- ----- 7.4/8.6 MB 942.0 kB/s eta 0:00:02\n", " ---------------------------------- ----- 7.5/8.6 MB 941.6 kB/s eta 0:00:02\n", " ----------------------------------- ---- 7.5/8.6 MB 946.4 kB/s eta 0:00:02\n", " ----------------------------------- ---- 7.5/8.6 MB 946.4 kB/s eta 0:00:02\n", " ----------------------------------- ---- 7.6/8.6 MB 944.2 kB/s eta 0:00:02\n", " ----------------------------------- ---- 7.6/8.6 MB 944.4 kB/s eta 0:00:01\n", " ------------------------------------ --- 7.7/8.6 MB 947.9 kB/s eta 0:00:01\n", " ------------------------------------ --- 7.8/8.6 MB 957.3 kB/s eta 0:00:01\n", " ------------------------------------ --- 7.8/8.6 MB 957.3 kB/s eta 0:00:01\n", " ------------------------------------ --- 7.9/8.6 MB 956.5 kB/s eta 0:00:01\n", " ------------------------------------ --- 7.9/8.6 MB 951.7 kB/s eta 0:00:01\n", " ------------------------------------- -- 8.0/8.6 MB 951.8 kB/s eta 0:00:01\n", " ------------------------------------- -- 8.2/8.6 MB 964.9 kB/s eta 0:00:01\n", " --------------------------------------- 8.4/8.6 MB 986.1 kB/s eta 0:00:01\n", " --------------------------------------- 8.5/8.6 MB 994.5 kB/s eta 0:00:01\n", " --------------------------------------- 8.5/8.6 MB 993.9 kB/s eta 0:00:01\n", " --------------------------------------- 8.5/8.6 MB 993.9 kB/s eta 0:00:01\n", " --------------------------------------- 8.6/8.6 MB 987.8 kB/s eta 0:00:01\n", " --------------------------------------- 8.6/8.6 MB 984.8 kB/s eta 0:00:01\n", " ---------------------------------------- 8.6/8.6 MB 983.0 kB/s eta 0:00:00\n", "Using cached blinker-1.8.2-py3-none-any.whl (9.5 kB)\n", "Downloading cachetools-5.3.3-py3-none-any.whl (9.3 kB)\n", "Downloading GitPython-3.1.43-py3-none-any.whl (207 kB)\n", " ---------------------------------------- 0.0/207.3 kB ? eta -:--:--\n", " ----------------- ---------------------- 92.2/207.3 kB 5.5 MB/s eta 0:00:01\n", " ----------------------- ---------------- 122.9/207.3 kB 1.4 MB/s eta 0:00:01\n", " ---------------------------------------- 207.3/207.3 kB 1.8 MB/s eta 0:00:00\n", "Downloading pydeck-0.9.1-py2.py3-none-any.whl (6.9 MB)\n", " ---------------------------------------- 0.0/6.9 MB ? eta -:--:--\n", " --------------------------------------- 0.1/6.9 MB 2.8 MB/s eta 0:00:03\n", " -- ------------------------------------- 0.4/6.9 MB 4.0 MB/s eta 0:00:02\n", " -- ------------------------------------- 0.4/6.9 MB 3.9 MB/s eta 0:00:02\n", " -- ------------------------------------- 0.4/6.9 MB 3.9 MB/s eta 0:00:02\n", " -- ------------------------------------- 0.4/6.9 MB 3.9 MB/s eta 0:00:02\n", " -- ------------------------------------- 0.4/6.9 MB 3.9 MB/s eta 0:00:02\n", " --- ------------------------------------ 0.6/6.9 MB 1.7 MB/s eta 0:00:04\n", " ---- ----------------------------------- 0.8/6.9 MB 2.3 MB/s eta 0:00:03\n", " ---- ----------------------------------- 0.8/6.9 MB 2.3 MB/s eta 0:00:03\n", " ----- ---------------------------------- 0.9/6.9 MB 2.0 MB/s eta 0:00:03\n", " ------ --------------------------------- 1.2/6.9 MB 2.3 MB/s eta 0:00:03\n", " ------- -------------------------------- 1.2/6.9 MB 2.3 MB/s eta 0:00:03\n", " ------- -------------------------------- 1.3/6.9 MB 2.2 MB/s eta 0:00:03\n", " ------- -------------------------------- 1.4/6.9 MB 2.2 MB/s eta 0:00:03\n", " ------- -------------------------------- 1.4/6.9 MB 2.2 MB/s eta 0:00:03\n", " -------- ------------------------------- 1.4/6.9 MB 1.9 MB/s eta 0:00:03\n", " -------- ------------------------------- 1.4/6.9 MB 1.9 MB/s eta 0:00:03\n", " --------- ------------------------------ 1.6/6.9 MB 1.9 MB/s eta 0:00:03\n", " ---------- ----------------------------- 1.7/6.9 MB 2.0 MB/s eta 0:00:03\n", " ---------- ----------------------------- 1.8/6.9 MB 2.0 MB/s eta 0:00:03\n", " ---------- ----------------------------- 1.8/6.9 MB 2.0 MB/s eta 0:00:03\n", " ---------- ----------------------------- 1.8/6.9 MB 2.0 MB/s eta 0:00:03\n", " ---------- ----------------------------- 1.9/6.9 MB 1.8 MB/s eta 0:00:03\n", " ---------- ----------------------------- 1.9/6.9 MB 1.7 MB/s eta 0:00:03\n", " ----------- ---------------------------- 2.0/6.9 MB 1.7 MB/s eta 0:00:03\n", " ------------ --------------------------- 2.1/6.9 MB 1.7 MB/s eta 0:00:03\n", " ------------ --------------------------- 2.1/6.9 MB 1.7 MB/s eta 0:00:03\n", " -------------- ------------------------- 2.4/6.9 MB 1.8 MB/s eta 0:00:03\n", " -------------- ------------------------- 2.5/6.9 MB 1.9 MB/s eta 0:00:03\n", " --------------- ------------------------ 2.7/6.9 MB 1.9 MB/s eta 0:00:03\n", " --------------- ------------------------ 2.7/6.9 MB 1.9 MB/s eta 0:00:03\n", " ---------------- ----------------------- 2.8/6.9 MB 1.9 MB/s eta 0:00:03\n", " ----------------- ---------------------- 3.1/6.9 MB 2.0 MB/s eta 0:00:02\n", " ------------------- -------------------- 3.3/6.9 MB 2.1 MB/s eta 0:00:02\n", " ------------------- -------------------- 3.4/6.9 MB 2.1 MB/s eta 0:00:02\n", " -------------------- ------------------- 3.5/6.9 MB 2.1 MB/s eta 0:00:02\n", " -------------------- ------------------- 3.5/6.9 MB 2.1 MB/s eta 0:00:02\n", " -------------------- ------------------- 3.5/6.9 MB 2.1 MB/s eta 0:00:02\n", " -------------------- ------------------- 3.6/6.9 MB 2.0 MB/s eta 0:00:02\n", " -------------------- ------------------- 3.6/6.9 MB 2.0 MB/s eta 0:00:02\n", " --------------------- ------------------ 3.6/6.9 MB 1.9 MB/s eta 0:00:02\n", " --------------------- ------------------ 3.7/6.9 MB 1.9 MB/s eta 0:00:02\n", " --------------------- ------------------ 3.7/6.9 MB 1.9 MB/s eta 0:00:02\n", " --------------------- ------------------ 3.7/6.9 MB 1.9 MB/s eta 0:00:02\n", " --------------------- ------------------ 3.7/6.9 MB 1.9 MB/s eta 0:00:02\n", " --------------------- ------------------ 3.7/6.9 MB 1.7 MB/s eta 0:00:02\n", " ----------------------- ---------------- 4.1/6.9 MB 1.9 MB/s eta 0:00:02\n", " ------------------------ --------------- 4.2/6.9 MB 1.9 MB/s eta 0:00:02\n", " ------------------------- -------------- 4.4/6.9 MB 1.9 MB/s eta 0:00:02\n", " ------------------------- -------------- 4.5/6.9 MB 1.9 MB/s eta 0:00:02\n", " -------------------------- ------------- 4.5/6.9 MB 1.9 MB/s eta 0:00:02\n", " -------------------------- ------------- 4.5/6.9 MB 1.9 MB/s eta 0:00:02\n", " -------------------------- ------------- 4.6/6.9 MB 1.9 MB/s eta 0:00:02\n", " -------------------------- ------------- 4.6/6.9 MB 1.9 MB/s eta 0:00:02\n", " ---------------------------- ----------- 4.9/6.9 MB 1.9 MB/s eta 0:00:02\n", " ---------------------------- ----------- 5.0/6.9 MB 1.9 MB/s eta 0:00:02\n", " ---------------------------- ----------- 5.0/6.9 MB 1.9 MB/s eta 0:00:02\n", " ---------------------------- ----------- 5.0/6.9 MB 1.9 MB/s eta 0:00:02\n", " ----------------------------- ---------- 5.1/6.9 MB 1.9 MB/s eta 0:00:01\n", " ------------------------------ --------- 5.2/6.9 MB 1.9 MB/s eta 0:00:01\n", " ------------------------------ --------- 5.2/6.9 MB 1.9 MB/s eta 0:00:01\n", " ------------------------------ --------- 5.3/6.9 MB 1.8 MB/s eta 0:00:01\n", " ------------------------------ --------- 5.3/6.9 MB 1.8 MB/s eta 0:00:01\n", " ------------------------------- -------- 5.4/6.9 MB 1.8 MB/s eta 0:00:01\n", " ------------------------------- -------- 5.5/6.9 MB 1.8 MB/s eta 0:00:01\n", " -------------------------------- ------- 5.5/6.9 MB 1.8 MB/s eta 0:00:01\n", " -------------------------------- ------- 5.6/6.9 MB 1.8 MB/s eta 0:00:01\n", " -------------------------------- ------- 5.7/6.9 MB 1.8 MB/s eta 0:00:01\n", " --------------------------------- ------ 5.7/6.9 MB 1.8 MB/s eta 0:00:01\n", " --------------------------------- ------ 5.7/6.9 MB 1.8 MB/s eta 0:00:01\n", " ---------------------------------- ----- 5.9/6.9 MB 1.8 MB/s eta 0:00:01\n", " ---------------------------------- ----- 5.9/6.9 MB 1.8 MB/s eta 0:00:01\n", " ---------------------------------- ----- 5.9/6.9 MB 1.8 MB/s eta 0:00:01\n", " ---------------------------------- ----- 6.0/6.9 MB 1.8 MB/s eta 0:00:01\n", " ----------------------------------- ---- 6.1/6.9 MB 1.7 MB/s eta 0:00:01\n", " ----------------------------------- ---- 6.1/6.9 MB 1.7 MB/s eta 0:00:01\n", " ----------------------------------- ---- 6.2/6.9 MB 1.7 MB/s eta 0:00:01\n", " ----------------------------------- ---- 6.2/6.9 MB 1.7 MB/s eta 0:00:01\n", " ------------------------------------ --- 6.2/6.9 MB 1.7 MB/s eta 0:00:01\n", " ------------------------------------ --- 6.3/6.9 MB 1.7 MB/s eta 0:00:01\n", " ------------------------------------- -- 6.5/6.9 MB 1.7 MB/s eta 0:00:01\n", " ------------------------------------- -- 6.6/6.9 MB 1.7 MB/s eta 0:00:01\n", " -------------------------------------- - 6.6/6.9 MB 1.7 MB/s eta 0:00:01\n", " -------------------------------------- - 6.7/6.9 MB 1.7 MB/s eta 0:00:01\n", " --------------------------------------- 6.8/6.9 MB 1.7 MB/s eta 0:00:01\n", " --------------------------------------- 6.9/6.9 MB 1.7 MB/s eta 0:00:01\n", " ---------------------------------------- 6.9/6.9 MB 1.7 MB/s eta 0:00:00\n", "Downloading rich-13.7.1-py3-none-any.whl (240 kB)\n", " ---------------------------------------- 0.0/240.7 kB ? eta -:--:--\n", " --------------- ------------------------ 92.2/240.7 kB 2.6 MB/s eta 0:00:01\n", " --------------------------- ------------ 163.8/240.7 kB 2.4 MB/s eta 0:00:01\n", " -------------------------------- ------- 194.6/240.7 kB 1.7 MB/s eta 0:00:01\n", " ---------------------------------------- 240.7/240.7 kB 1.5 MB/s eta 0:00:00\n", "Downloading tenacity-8.3.0-py3-none-any.whl (25 kB)\n", "Downloading watchdog-4.0.1-py3-none-win_amd64.whl (83 kB)\n", " ---------------------------------------- 0.0/83.0 kB ? eta -:--:--\n", " ---------------------------------------- 83.0/83.0 kB 1.5 MB/s eta 0:00:00\n", "Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)\n", " ---------------------------------------- 0.0/62.7 kB ? eta -:--:--\n", " ---------------------------------------- 62.7/62.7 kB ? eta 0:00:00\n", "Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)\n", " ---------------------------------------- 0.0/87.5 kB ? eta -:--:--\n", " ---------------------------------------- 87.5/87.5 kB 4.8 MB/s eta 0:00:00\n", "Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)\n", "Downloading smmap-5.0.1-py3-none-any.whl (24 kB)\n", "Installing collected packages: watchdog, tenacity, smmap, mdurl, cachetools, blinker, pydeck, markdown-it-py, gitdb, rich, gitpython, streamlit\n", "Successfully installed blinker-1.8.2 cachetools-5.3.3 gitdb-4.0.11 gitpython-3.1.43 markdown-it-py-3.0.0 mdurl-0.1.2 pydeck-0.9.1 rich-13.7.1 smmap-5.0.1 streamlit-1.35.0 tenacity-8.3.0 watchdog-4.0.1\n" ] } ], "source": [ "!pip install streamlit" ] }, { "cell_type": "markdown", "id": "f408d44e-72f6-4096-961c-a0747cf79061", "metadata": {}, "source": [ "# python ile yapılan çalışmaların hızlı bir şekilde deployment süreçleri - HTML Rendering" ] }, { "cell_type": "code", "execution_count": 56, "id": "30f657b3-cb9e-4e08-9179-2eaf3ebcc51b", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2024-06-11 20:10:16.914 Session state does not function when running a script without `streamlit run`\n" ] } ], "source": [ "import streamlit as st\n", "#price tahmin fonksiyonu tanımla\n", "def price(make,model,trim,mileage,car_type,cylinder,liter,doors,cruise,sound,leather):\n", " input_data=pd.DataFrame({'Make':[make],\n", " 'Model':[model],\n", " 'Trim':[trim],\n", " 'Mileage':[mileage],\n", " 'Type':[car_type],\n", " 'Cylinder':[cylinder],\n", " 'Liter':[liter],\n", " 'Doors':[doors],\n", " 'Cruise':[cruise],\n", " 'Sound':[sound],\n", " 'Leather':[leather]})\n", " prediction = pipe.predict(input_data)[0]\n", " return prediction\n", "\n", "\n", "st.title(\"Car Price Prediction: red_car: @ErayCoşkunAI\")\n", "st.write('Select feature of the car')\n", "make = st.selectbox(\"Brand of Car\",df['Make'].unique())\n", "model = st.selectbox(\"Model of Car\",df[df['Make']==make]['Model'].unique())\n", "trim = st.selectbox('Trim Of Car', df[(df['Make']==make) & (df['Model']==model)]['Trim'].unique())\n", "mileage = st.number_input('Kilometer of Car',100,200000)\n", "car_type = st.selectbox('Type Of Car', df['Type'].unique())\n", "cylinder = st.selectbox('Cylinder of Car',df['Cylinder'].unique())\n", "liter = st.number_input('Liter value of car',1,10)\n", "doors = st.selectbox('Count of Door',df['Doors'].unique())\n", "cruise = st.radio('Hız sbt', [True,False])\n", "sound = st.radio('Sound System',[True,False])\n", "leather = st.radio('Deri Döşeme',[True,False])\n", "if st.button('Tahmin'):\n", " pred = price(make,model,trim,mileage,car_type,cylinder,liter,doors,cruise,sound,leather)\n", " st.write('Price:$',round(pred[0],2))\n" ] }, { "cell_type": "code", "execution_count": null, "id": "2676981b-51c0-4d72-8897-011bdc45724a", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "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.11.9" } }, "nbformat": 4, "nbformat_minor": 5 }