-
-
Save amankharwal/99381a4201667a6f61fcd4442c615e4b 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 pandas as pd | |
import string | |
import numpy as np | |
import json | |
from keras.preprocessing.sequence import pad_sequences | |
from keras.layers import Embedding, LSTM, Dense, Dropout | |
from keras.preprocessing.text import Tokenizer | |
from keras.callbacks import EarlyStopping | |
from keras.models import Sequential | |
import keras.utils as ku | |
import tensorflow as tf | |
tf.random.set_seed(2) | |
from numpy.random import seed | |
seed(1) | |
#load all the datasets | |
df1 = pd.read_csv('USvideos.csv') | |
df2 = pd.read_csv('CAvideos.csv') | |
df3 = pd.read_csv('GBvideos.csv') | |
#load the datasets containing the category names | |
data1 = json.load(open('US_category_id.json')) | |
data2 = json.load(open('CA_category_id.json')) | |
data3 = json.load(open('GB_category_id.json')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment