Skip to content

Instantly share code, notes, and snippets.

Nissan Dookeran nissan

Block or report user

Report or block nissan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hummingbird_custom_2-resnet34.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View lesson2-download-hummingbirds-raw-1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View lesson1-birds.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nissan
nissan / lesson1-birds.ipynb
Created Oct 28, 2018
Fast.ai v3 DL1 Lesson 1 using Birds dataset
View lesson1-birds.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nissan
nissan / predictions.py
Created Aug 27, 2018 — forked from lextoumbourou/predictions.py
Making predictions with a SequentialRNN model (Fast.ai)
View predictions.py
# Note: ensure you have the latest version of Torchtext by running: pip install torchtext --upgrade
rnn_model = text_data.get_model(opt_fn, 1500, bptt, emb_sz=em_sz, n_hid=nh, n_layers=nl,
dropout=0.1, dropouti=0.65, wdrop=0.5, dropoute=0.1, dropouth=0.3)
# ...
rnn_model.data.test_dl.src.sort = False
rnn_model.data.test_dl.src.sort_within_batch = False
rnn_model.data.test_dl.src.shuffle = False
@nissan
nissan / dataframe_dataset.py
Created Aug 27, 2018 — forked from lextoumbourou/dataframe_dataset.py
Torchtext dataset from DataFrame
View dataframe_dataset.py
from torchtext import data
class DataFrameDataset(data.Dataset):
def __init__(self, df, text_field, label_field, is_test=False, **kwargs):
fields = [('text', text_field), ('label', label_field)]
examples = []
for i, row in df.iterrows():
label = row.sentiment if not is_test else None
text = row.text
@nissan
nissan / .babelrc
Last active Jun 4, 2018
Initialized .NET Core 2.1 App with SPA front end in React, Emotion, Storybook, Jest
View .babelrc
{
"presets": ["babel-preset-env", "babel-preset-react"],
"env": {
"production": {
"plugins": [
["emotion", {
"hoist": true
}]
]
},
@nissan
nissan / new-dotnetcore-react-ts-storybook-jest.ps1
Created Jun 2, 2018
Setup a new .NET Core 2.1 app for Windows with React, TypeScript, Storybook, Jest
View new-dotnetcore-react-ts-storybook-jest.ps1
Assumes you have the .NET SDK 2.1 for Windows already installed
#Use Chocolatey to install packages, run this script from Administrator Powershell
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
#Use nvm to manage node versions
choco install -y nvm
nvm use default
#install yarn independent of version of node being used
choco install -y yarn
refreshenv
@nissan
nissan / new-dotnetcore-react-ts-storybook-jest.sh
Last active Jun 2, 2018
Setup a new .NET Core 2.1 app for Mac OSX with React, TypeScript, Storybook, Jest
View new-dotnetcore-react-ts-storybook-jest.sh
#Assumes you have the .NET SDK 2.1 for Mac already installed
#Use Homebrew to install packages
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#Use nvm to manage node versions
brew install nvm
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bash_profile
echo '. "/usr/local/opt/nvm/nvm.sh"' >>~/.bash_profile
nvm install v10.3.0
nvm use default
#install yarn independent of version of node being used
@nissan
nissan / new-dotnetcore-react-storybook-jest-app.ps1
Created Jun 1, 2018
Setup a new .NET Core 2.1 app for Windows with React, Storybook, Jest
View new-dotnetcore-react-storybook-jest-app.ps1
#Assumes you have the .NET SDK 2.1 for Windows already installed
#Use Chocolatey to install packages, run this script from Administrator Powershell
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
#Use nvm to manage node versions
choco install -y nvm
nvm use default
#install yarn independent of version of node being used
choco install -y yarn
refreshenv
You can’t perform that action at this time.