-
Install Docker (version latest)
-
Install NVIDIA Drivers (version _____)
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
lstm = model.layers[2] | |
# Get output from intermediate layer to visualize activations | |
attn_func = K.function(inputs = [model.get_input_at(0), K.learning_phase()], | |
outputs = [lstm.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
# Copyright 2017 The TensorFlow Authors All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
Links to resources for creating Data Science Reports at different stages of the lifecycle.
- Stanford University's 2014 students final Data Science project reports
- Kaggle Winning Solution Template - For technical audience only
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 numpy as np | |
import pandas as pd | |
from sklearn.model_selection import StratifiedKFold | |
df = pd.read_csv(path_to_data) | |
n_bins = 1+np.log2(df.shape[0]) # Sturge's rule | |
df["bins"] = pd.cut(df.target, n_bins, labels=False) | |
n_folds = 5 | |
skf = StratifiedKFold(n_splits=n_folds) |
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
from glob import glob | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from PIL import Image | |
import pytorch_lightning as pl | |
from pytorch_lightning.callbacks import ModelCheckpoint | |
from pytorch_lightning.callbacks.early_stopping import EarlyStopping |
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
sudo apt-get install -y libcurl4-gnutls-dev libjpeg-turbo8-dev libpng-dev | |
sudo apt-get install -y autoconf \ | |
re2c \ | |
bison \ | |
libsqlite3-dev \ | |
libpq-dev \ | |
libonig-dev \ | |
libfcgi-dev \ | |
libfcgi0ldbl \ | |
libjpeg-dev \ |
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
# | |
# This is the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |
OlderNewer