Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
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 datetime | |
import pandas as pd | |
from ib_insync import * | |
pd.set_option('display.max_rows', None) | |
ib = IB() | |
ib.connect('127.0.0.1', 7496, clientId=15) | |
contract = Stock('SPY', 'SMART', 'USD') |
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
#%% packages | |
# data handling | |
import numpy as np | |
from sklearn.datasets import fetch_california_housing | |
from sklearn.preprocessing import StandardScaler | |
from sklearn.model_selection import train_test_split | |
from sklearn.metrics import r2_score | |
# deep learning | |
import torch | |
import torch.nn as nn |
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 uvicorn | |
from fastapi import FastAPI | |
from model import SentimentModel, SentimentQueryModel | |
app = FastAPI() | |
model = SentimentModel() | |
@app.post('/predict') | |
def predict(data: SentimentQueryModel): | |
data = data.dict() |
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 streamlit as st | |
from persist import persist, load_widget_state | |
def main(): | |
if "page" not in st.session_state: | |
# Initialize session state. | |
st.session_state.update({ | |
# Default page. | |
"page": "home", |
05/22 - Deep Learning Hands-On Series - Data Exploration and API First Design 🎥
05/29 - Deep Learning Hands-On Series - Model Tuning 🎥
06/05 - Deep Learning Hands-On Series - Monitoring [cancelled]
You experience one or more of these symptoms
- you have code in a directory but it's not being pushed to GitHub. You just see an empty directory icon
- you see this message when you add code to your git repository from the command prompt
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
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
""" | |
Script to eveluation model | |
Usage: | |
python evaluate.py --dataset /path/to/folder/images --checkpoint /point/to/model | |
Example: | |
python evaluate.py --dataset /dataset/val --checkpoint /box20190222T1237/mask_rcnn_box_0019.h5 | |
""" | |
import json |
NewerOlder