Added expanduser to the Kenya dataset

This commit is contained in:
Caleb Robinson 2021-06-23 23:38:48 +00:00
Родитель 32c1f3f10b
Коммит d802226295
1 изменённых файлов: 20 добавлений и 17 удалений

Просмотреть файл

@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "tutorial-arlington",
"id": "official-yacht",
"metadata": {},
"outputs": [],
"source": [
@ -12,6 +12,7 @@
"%autoreload 2\n",
"import sys\n",
"sys.path.append(\"..\")\n",
"import os\n",
"\n",
"import numpy as np\n",
"import matplotlib\n",
@ -24,17 +25,17 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "active-album",
"id": "global-minister",
"metadata": {},
"outputs": [],
"source": [
"ROOT_DIR = \"~/mount/data/\"\n",
"ROOT_DIR = os.path.expanduser(\"~/mount/data/\")\n",
"API_KEY = \"\""
]
},
{
"cell_type": "markdown",
"id": "maritime-confusion",
"id": "ongoing-differential",
"metadata": {},
"source": [
"## Benchmarking"
@ -43,7 +44,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "oriented-bobby",
"id": "changing-albany",
"metadata": {},
"outputs": [
{
@ -64,7 +65,8 @@
" chip_size=256,\n",
" stride=128,\n",
" bands=None, # Use all bands\n",
" download=True, api_key=API_KEY,\n",
" download=True,\n",
" api_key=API_KEY,\n",
" verbose=True\n",
")"
]
@ -72,7 +74,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "adopted-empty",
"id": "latin-thing",
"metadata": {},
"outputs": [
{
@ -108,7 +110,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "focal-conservative",
"id": "outer-optimum",
"metadata": {},
"outputs": [
{
@ -128,7 +130,7 @@
},
{
"cell_type": "markdown",
"id": "hearing-david",
"id": "vulnerable-ground",
"metadata": {},
"source": [
"## Testing the train/test split"
@ -137,7 +139,7 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "ready-burlington",
"id": "australian-binary",
"metadata": {},
"outputs": [
{
@ -158,7 +160,7 @@
},
{
"cell_type": "markdown",
"id": "logical-survival",
"id": "forward-algorithm",
"metadata": {},
"source": [
"## Show chip access pattern across a tile"
@ -167,7 +169,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "formed-beverage",
"id": "interpreted-wayne",
"metadata": {},
"outputs": [
{
@ -187,7 +189,8 @@
" chip_size=chip_size,\n",
" stride=stride,\n",
" bands=(\"B04\",\"B03\",\"B02\"),\n",
" download=True, api_key=API_KEY,\n",
" download=True,\n",
" api_key=API_KEY,\n",
" verbose=False\n",
")"
]
@ -195,7 +198,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "formal-deposit",
"id": "cosmetic-capability",
"metadata": {},
"outputs": [
{
@ -214,7 +217,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "thorough-capture",
"id": "specialized-diabetes",
"metadata": {},
"outputs": [
{
@ -243,7 +246,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "divine-nutrition",
"id": "thousand-citation",
"metadata": {},
"outputs": [
{
@ -274,7 +277,7 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "polyphonic-midwest",
"id": "hairy-humor",
"metadata": {},
"outputs": [
{