Skip to content

Commit

Permalink
Projects Startes
Browse files Browse the repository at this point in the history
  • Loading branch information
oduerr committed Jan 30, 2025
1 parent e72409e commit b4373a8
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions project_starters/000_project_tips.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Tips and Tricks for your Projects"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Getting data to colab \n",
"\n",
"### From Dropbox\n",
"If you have a file in Dropbox, you can get the link to the file and use the following code to load it into your colab environment. \n",
"\n",
"Create a shared link for the file in Dropbox like this:\n",
"\n",
"```\n",
"https://www.dropbox.com.../petfinder-pawpularity-score.zip?rlkey=5zxcpsc7x6jk74q8a4b5sloo7&dl=0\n",
"```\n",
" \n",
"Change the `dl=0` to `dl=1` and use the following code to load the file into your colab environment.\n",
"\n",
"```python\n",
"import urllib\n",
"import os\n",
"if not os.path.isfile('petfinder-pawpularity-score.zip'):\n",
" urllib.request.urlretrieve(\"https://www.dropbox.com/scl/fi/of8dxl0eb9y0c81o0rzhn/petfinder-pawpularity-score.zip?rlkey=5zxcpsc7x6jk74q8a4b5sloo7&dl=1\",\n",
" \"petfinder-pawpularity-score.zip\")\n",
"!ls -lh petfinder-pawpularity-score.zip\n",
"#### For unzipping the file\n",
"!unzip -q -n petfinder-pawpularity-score.zip\n",
"!ls -l train | wc -l #Number of Training data\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
File renamed without changes.
File renamed without changes.

0 comments on commit b4373a8

Please sign in to comment.