diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..f5a93a6
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..c8397c9
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..68be8ea
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "keyToString": {
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "WebServerToolWindowFactoryState": "false",
+ "last_opened_file_path": "/home/students/s464914/PycharmProjects/ium_464914",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "vue.rearranger.settings.migration": "true"
+ }
+}
+
+
+
+
+ 1710696754593
+
+
+ 1710696754593
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/IUM_2.ipynb b/IUM_2.ipynb
index 677bedb..76fb411 100644
--- a/IUM_2.ipynb
+++ b/IUM_2.ipynb
@@ -2,11 +2,152 @@
"cells": [
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 1,
"metadata": {
- "scrolled": true
+ "scrolled": true,
+ "pycharm": {
+ "is_executing": true
+ },
+ "ExecuteTime": {
+ "end_time": "2024-04-13T16:07:39.757038200Z",
+ "start_time": "2024-04-13T16:07:01.476848900Z"
+ }
},
- "outputs": [],
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Requirement already satisfied: kaggle in \\\\files\\students\\s464914\\.appdata\\python\\python310\\site-packages (1.6.6)\n",
+ "Requirement already satisfied: six>=1.10 in c:\\software\\python3\\lib\\site-packages (from kaggle) (1.16.0)\n",
+ "Requirement already satisfied: certifi in c:\\software\\python3\\lib\\site-packages (from kaggle) (2023.7.22)\n",
+ "Requirement already satisfied: python-dateutil in c:\\software\\python3\\lib\\site-packages (from kaggle) (2.8.2)\n",
+ "Requirement already satisfied: requests in c:\\software\\python3\\lib\\site-packages (from kaggle) (2.31.0)\n",
+ "Requirement already satisfied: tqdm in c:\\software\\python3\\lib\\site-packages (from kaggle) (4.66.1)\n",
+ "Requirement already satisfied: python-slugify in \\\\files\\students\\s464914\\.appdata\\python\\python310\\site-packages (from kaggle) (8.0.4)\n",
+ "Requirement already satisfied: urllib3 in c:\\software\\python3\\lib\\site-packages (from kaggle) (1.26.16)\n",
+ "Requirement already satisfied: bleach in c:\\software\\python3\\lib\\site-packages (from kaggle) (6.0.0)\n",
+ "Requirement already satisfied: webencodings in c:\\software\\python3\\lib\\site-packages (from bleach->kaggle) (0.5.1)\n",
+ "Requirement already satisfied: text-unidecode>=1.3 in \\\\files\\students\\s464914\\.appdata\\python\\python310\\site-packages (from python-slugify->kaggle) (1.3)\n",
+ "Requirement already satisfied: charset-normalizer<4,>=2 in c:\\software\\python3\\lib\\site-packages (from requests->kaggle) (3.2.0)\n",
+ "Requirement already satisfied: idna<4,>=2.5 in c:\\software\\python3\\lib\\site-packages (from requests->kaggle) (3.4)\n",
+ "Requirement already satisfied: colorama in c:\\software\\python3\\lib\\site-packages (from tqdm->kaggle) (0.4.6)\n",
+ "Note: you may need to restart the kernel to use updated packages.\n"
+ ]
+ },
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "[notice] A new release of pip is available: 23.0.1 -> 24.0\n",
+ "[notice] To update, run: python3.exe -m pip install --upgrade pip\n"
+ ]
+ },
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Requirement already satisfied: pandas in c:\\software\\python3\\lib\\site-packages (2.0.3)\n",
+ "Requirement already satisfied: python-dateutil>=2.8.2 in c:\\software\\python3\\lib\\site-packages (from pandas) (2.8.2)\n",
+ "Requirement already satisfied: pytz>=2020.1 in c:\\software\\python3\\lib\\site-packages (from pandas) (2023.3)\n",
+ "Requirement already satisfied: tzdata>=2022.1 in c:\\software\\python3\\lib\\site-packages (from pandas) (2023.3)\n",
+ "Requirement already satisfied: numpy>=1.21.0 in c:\\software\\python3\\lib\\site-packages (from pandas) (1.24.3)\n",
+ "Requirement already satisfied: six>=1.5 in c:\\software\\python3\\lib\\site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)\n",
+ "Note: you may need to restart the kernel to use updated packages.\n"
+ ]
+ },
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "[notice] A new release of pip is available: 23.0.1 -> 24.0\n",
+ "[notice] To update, run: python3.exe -m pip install --upgrade pip\n"
+ ]
+ },
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Requirement already satisfied: scikit-learn in c:\\software\\python3\\lib\\site-packages (1.3.0)\n",
+ "Requirement already satisfied: numpy>=1.17.3 in c:\\software\\python3\\lib\\site-packages (from scikit-learn) (1.24.3)\n",
+ "Requirement already satisfied: scipy>=1.5.0 in c:\\software\\python3\\lib\\site-packages (from scikit-learn) (1.11.2)\n",
+ "Requirement already satisfied: joblib>=1.1.1 in c:\\software\\python3\\lib\\site-packages (from scikit-learn) (1.3.2)\n",
+ "Requirement already satisfied: threadpoolctl>=2.0.0 in c:\\software\\python3\\lib\\site-packages (from scikit-learn) (3.2.0)\n",
+ "Note: you may need to restart the kernel to use updated packages.\n"
+ ]
+ },
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "[notice] A new release of pip is available: 23.0.1 -> 24.0\n",
+ "[notice] To update, run: python3.exe -m pip install --upgrade pip\n"
+ ]
+ },
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Requirement already satisfied: matplotlib in c:\\software\\python3\\lib\\site-packages (3.7.2)\n",
+ "Requirement already satisfied: contourpy>=1.0.1 in c:\\software\\python3\\lib\\site-packages (from matplotlib) (1.1.0)\n",
+ "Requirement already satisfied: cycler>=0.10 in c:\\software\\python3\\lib\\site-packages (from matplotlib) (0.11.0)\n",
+ "Requirement already satisfied: fonttools>=4.22.0 in c:\\software\\python3\\lib\\site-packages (from matplotlib) (4.42.0)\n",
+ "Requirement already satisfied: kiwisolver>=1.0.1 in c:\\software\\python3\\lib\\site-packages (from matplotlib) (1.4.4)\n",
+ "Requirement already satisfied: numpy>=1.20 in c:\\software\\python3\\lib\\site-packages (from matplotlib) (1.24.3)\n",
+ "Requirement already satisfied: packaging>=20.0 in c:\\software\\python3\\lib\\site-packages (from matplotlib) (23.1)\n",
+ "Requirement already satisfied: pillow>=6.2.0 in c:\\software\\python3\\lib\\site-packages (from matplotlib) (10.0.0)\n",
+ "Requirement already satisfied: pyparsing<3.1,>=2.3.1 in c:\\software\\python3\\lib\\site-packages (from matplotlib) (3.0.9)\n",
+ "Requirement already satisfied: python-dateutil>=2.7 in c:\\software\\python3\\lib\\site-packages (from matplotlib) (2.8.2)\n",
+ "Requirement already satisfied: six>=1.5 in c:\\software\\python3\\lib\\site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0)\n",
+ "Note: you may need to restart the kernel to use updated packages.\n"
+ ]
+ },
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "[notice] A new release of pip is available: 23.0.1 -> 24.0\n",
+ "[notice] To update, run: python3.exe -m pip install --upgrade pip\n"
+ ]
+ },
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Requirement already satisfied: geopandas in \\\\files\\students\\s464914\\.appdata\\python\\python310\\site-packages (0.14.3)\n",
+ "Requirement already satisfied: fiona>=1.8.21 in \\\\files\\students\\s464914\\.appdata\\python\\python310\\site-packages (from geopandas) (1.9.6)\n",
+ "Requirement already satisfied: packaging in c:\\software\\python3\\lib\\site-packages (from geopandas) (23.1)\n",
+ "Requirement already satisfied: pandas>=1.4.0 in c:\\software\\python3\\lib\\site-packages (from geopandas) (2.0.3)\n",
+ "Requirement already satisfied: pyproj>=3.3.0 in \\\\files\\students\\s464914\\.appdata\\python\\python310\\site-packages (from geopandas) (3.6.1)\n",
+ "Requirement already satisfied: shapely>=1.8.0 in \\\\files\\students\\s464914\\.appdata\\python\\python310\\site-packages (from geopandas) (2.0.3)\n",
+ "Requirement already satisfied: attrs>=19.2.0 in c:\\software\\python3\\lib\\site-packages (from fiona>=1.8.21->geopandas) (23.1.0)\n",
+ "Requirement already satisfied: certifi in c:\\software\\python3\\lib\\site-packages (from fiona>=1.8.21->geopandas) (2023.7.22)\n",
+ "Requirement already satisfied: click~=8.0 in c:\\software\\python3\\lib\\site-packages (from fiona>=1.8.21->geopandas) (8.1.7)\n",
+ "Requirement already satisfied: click-plugins>=1.0 in \\\\files\\students\\s464914\\.appdata\\python\\python310\\site-packages (from fiona>=1.8.21->geopandas) (1.1.1)\n",
+ "Requirement already satisfied: cligj>=0.5 in \\\\files\\students\\s464914\\.appdata\\python\\python310\\site-packages (from fiona>=1.8.21->geopandas) (0.7.2)\n",
+ "Requirement already satisfied: six in c:\\software\\python3\\lib\\site-packages (from fiona>=1.8.21->geopandas) (1.16.0)\n",
+ "Requirement already satisfied: python-dateutil>=2.8.2 in c:\\software\\python3\\lib\\site-packages (from pandas>=1.4.0->geopandas) (2.8.2)\n",
+ "Requirement already satisfied: pytz>=2020.1 in c:\\software\\python3\\lib\\site-packages (from pandas>=1.4.0->geopandas) (2023.3)\n",
+ "Requirement already satisfied: tzdata>=2022.1 in c:\\software\\python3\\lib\\site-packages (from pandas>=1.4.0->geopandas) (2023.3)\n",
+ "Requirement already satisfied: numpy>=1.21.0 in c:\\software\\python3\\lib\\site-packages (from pandas>=1.4.0->geopandas) (1.24.3)\n",
+ "Requirement already satisfied: colorama in c:\\software\\python3\\lib\\site-packages (from click~=8.0->fiona>=1.8.21->geopandas) (0.4.6)\n",
+ "Note: you may need to restart the kernel to use updated packages.\n"
+ ]
+ },
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "[notice] A new release of pip is available: 23.0.1 -> 24.0\n",
+ "[notice] To update, run: python3.exe -m pip install --upgrade pip\n"
+ ]
+ }
+ ],
"source": [
"%pip install --user kaggle \n",
"%pip install --user pandas\n",
@@ -32,25 +173,64 @@
},
{
"cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
+ "execution_count": 4,
+ "metadata": {
+ "pycharm": {
+ "is_executing": true
+ },
+ "ExecuteTime": {
+ "end_time": "2024-04-13T16:11:03.249257400Z",
+ "start_time": "2024-04-13T16:10:58.745694100Z"
+ }
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Downloading forest-cover-type-dataset.zip to J:\\PycharmProjects\\ium_464914\n"
+ ]
+ },
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ " 0%| | 0.00/11.2M [00:00, ?B/s]\n",
+ " 9%|8 | 1.00M/11.2M [00:00<00:06, 1.56MB/s]\n",
+ " 18%|#7 | 2.00M/11.2M [00:00<00:03, 3.10MB/s]\n",
+ " 36%|###5 | 4.00M/11.2M [00:00<00:01, 6.25MB/s]\n",
+ " 54%|#####3 | 6.00M/11.2M [00:01<00:00, 9.19MB/s]\n",
+ " 81%|######## | 9.00M/11.2M [00:01<00:00, 13.0MB/s]\n",
+ "100%|##########| 11.2M/11.2M [00:01<00:00, 9.30MB/s]\n"
+ ]
+ }
+ ],
"source": [
"!kaggle datasets download -d uciml/forest-cover-type-dataset"
]
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 5,
"metadata": {
"ExecuteTime": {
- "end_time": "2024-03-17T17:38:23.310983800Z",
- "start_time": "2024-03-17T17:38:22.919245800Z"
+ "end_time": "2024-04-13T16:11:41.214712500Z",
+ "start_time": "2024-04-13T16:11:37.462860300Z"
}
},
- "outputs": [],
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Archive: forest-cover-type-dataset.zip\n",
+ " inflating: covtype.csv \n"
+ ]
+ }
+ ],
"source": [
- "!unzip -o meteorite-landings.zip -d data"
+ "!unzip -o forest-cover-type-dataset.zip "
]
},
{
diff --git a/forest-cover-type-dataset.zip b/forest-cover-type-dataset.zip
new file mode 100644
index 0000000..f4fb708
Binary files /dev/null and b/forest-cover-type-dataset.zip differ