Skip to content

Instantly share code, notes, and snippets.

View pankajarm's full-sized avatar
💭
Building

Pankaj Mathur pankajarm

💭
Building
View GitHub Profile
import torch, apex
from pytorch_pretrained_bert.tokenization import BertTokenizer
from fast_bert.data import BertDataBunch
from fast_bert.learner import BertLearner
from fast_bert.metrics import accuracy
DATA_PATH = Path('../data/') # path for data files (train and val)
LABEL_PATH = Path('../labels/') # path for labels file
MODEL_PATH=Path('../models/') # path for model artifacts to be stored
LOG_PATH=Path('../logs/'). # path for log files to be stored
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pankajarm
pankajarm / Linear-regression.ipynb
Created April 1, 2017 22:32
Linear Regression with TensorFlow 1.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pankajarm
pankajarm / Multilayer_Perceptron.ipynb
Created April 1, 2017 22:15
Multilayer Perceptron build with TensorFlow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pankajarm
pankajarm / Logistic-Regression.ipynb
Created April 1, 2017 21:21
Logistic Regression in Tensor Flow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.