fix script
This commit is contained in:
parent
1c46a7cf44
commit
82b655ce2f
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
4
.idea/misc.xml
Normal file
4
.idea/misc.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10" project-jdk-type="Python SDK" />
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
76
.idea/workspace.xml
Normal file
76
.idea/workspace.xml
Normal file
@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AutoImportSettings">
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="40d6174e-f930-434f-92f0-26bfa57af58c" name="Changes" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/IUM_2.ipynb" beforeDir="false" afterPath="$PROJECT_DIR$/IUM_2.ipynb" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||
<map>
|
||||
<entry key="$PROJECT_DIR$" value="ium_2" />
|
||||
</map>
|
||||
</option>
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="MarkdownSettingsMigration">
|
||||
<option name="stateVersion" value="1" />
|
||||
</component>
|
||||
<component name="ProjectId" id="2dpEjKsY3xaMmDCHDmrd7pCeSw4" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">{
|
||||
"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"
|
||||
}
|
||||
}</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="40d6174e-f930-434f-92f0-26bfa57af58c" name="Changes" comment="" />
|
||||
<created>1710696754593</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1710696754593</updated>
|
||||
<workItem from="1710696756015" duration="548000" />
|
||||
<workItem from="1710940251374" duration="3584000" />
|
||||
<workItem from="1711050477406" duration="616000" />
|
||||
<workItem from="1711457152275" duration="7994000" />
|
||||
<workItem from="1711472959743" duration="2963000" />
|
||||
<workItem from="1713023286972" duration="213000" />
|
||||
<workItem from="1713024301113" duration="305000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
<option name="TAB_STATES">
|
||||
<map>
|
||||
<entry key="MAIN">
|
||||
<value>
|
||||
<State />
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
202
IUM_2.ipynb
202
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 "
|
||||
]
|
||||
},
|
||||
{
|
||||
|
BIN
forest-cover-type-dataset.zip
Normal file
BIN
forest-cover-type-dataset.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user