Skip to content

Instantly share code, notes, and snippets.

@tezansahu
Last active March 5, 2022 19:11
Show Gist options
  • Save tezansahu/7e78314297616d6fa9ff3e2d35146a53 to your computer and use it in GitHub Desktop.
Save tezansahu/7e78314297616d6fa9ff3e2d35146a53 to your computer and use it in GitHub Desktop.
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