Skip to content

Instantly share code, notes, and snippets.

View chadng's full-sized avatar

RobotScope chadng

View GitHub Profile
@chadng
chadng / LSTM_Binary.py
Created February 13, 2020 14:01 — forked from urigoren/LSTM_Binary.py
LSTM Binary classification with Keras
from keras.layers import Dense, Dropout, LSTM, Embedding
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential
import pandas as pd
import numpy as np
input_file = 'input.csv'
def load_data(test_split = 0.2):
print ('Loading data...')