Last active
March 5, 2022 19:11
-
-
Save tezansahu/7e78314297616d6fa9ff3e2d35146a53 to your computer and use it in GitHub Desktop.
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 os | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
from sklearn.model_selection import train_test_split | |
from sklearn.metrics import f1_score, accuracy_score | |
import torch | |
from simpletransformers.classification import ClassificationModel | |
# [Optional] Releases all unoccupied cached memory currently held by the | |
# caching allocator so that those can be used in other GPU application | |
torch.cuda.empty_cache() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment