Skip to content

Instantly share code, notes, and snippets.

View ShMazumder's full-sized avatar
🏠
Working from home

Shazzad Hossain Mazumder ShMazumder

🏠
Working from home
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShMazumder
ShMazumder / get_dataset.py
Created February 25, 2021 13:38 — forked from ardamavi/get_dataset.py
For reading datasets and converting to numpy files.
# Arda Mavi
import os
import numpy as np
from os import listdir
from scipy.misc import imread, imresize
from keras.utils import to_categorical
from sklearn.model_selection import train_test_split
# Settings:
img_size = 64
import pandas as pd
import numpy as np
# load training data
train = pd.read_csv('BERT_proj/train_E6oV3lV.csv', encoding='iso-8859-1')
train.shape