text_plain_output_1.png
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split, cross_val_score, cross_val_predict, KFold, GridSearchCV
from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score, classification_report, confusion_matrix, precision_recall_fscore_support
import re
import tensorflow as tf
import keras
from keras import backend as K
from keras.models import Sequential, Model, load_model
from keras.preprocessing.text import Tokenizer
from keras.layers import Dropout, Activation, Flatten, Embedding, Convolution1D, MaxPooling1D, AveragePooling1D, Input, Dense, Add, TimeDistributed, Bidirectional, SpatialDropout1D, GlobalMaxPool1D
from keras.layers import LSTM, GRU, SimpleRNN
from keras.regularizers import l2, l1_l2
from keras.constraints import maxnorm
from keras import callbacks
from keras.callbacks import ModelCheckpoint, EarlyStopping
from keras.wrappers.scikit_learn import KerasClassifier
from sklearn.model_selection import KFold
import contractions