This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set parameters here | |
savepath = 'datasets/aws/chest_xray/pneumonia' | |
seed = 0 | |
np.random.seed(seed) # Reset the seed so all runs are the same. | |
random.seed(seed) | |
MAXVAL = 255 # Range [0 255] | |
# path to covid-19 dataset from https://github.com/ieee8023/covid-chestxray-dataset | |
imgpath = 'images' | |
csvpath = 'metadata.csv' |
Note, if you are on a Mac, substitute command
for control
. Don't type the +
(it means press both keys at once).
-
Shift
+Enter
run selected cells -
Ctrl
+S
save and checkpoint -
Ctrl
+Shift
+S
save as -
Ctrl
+B
toggles hide/show left sidebar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import os | |
import pandas as pd | |
from flask import Flask, request, redirect, session, url_for | |
from requests_oauthlib import OAuth2Session | |
import json | |
OUTPUT_PATH = 'output/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Info on how to get your api key (kaggle.json) here: https://github.com/Kaggle/kaggle-api#api-credentials | |
!pip install kaggle | |
api_token = {"username":"USERNAME","key":"API_KEY"} | |
import json | |
import zipfile | |
import os | |
with open('/content/.kaggle/kaggle.json', 'w') as file: | |
json.dump(api_token, file) | |
!chmod 600 /content/.kaggle/kaggle.json | |
!kaggle config path -p /content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-04-10T18:30:10.283Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Prerequisites | |
- Hugo > 0.55.0 | |
## Content Management |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello |
##test #hello ####world