April 2020
Intermediate to advanced
380 pages
9h 24m
English
In this section, we will build the model that determines whether any user is performing a regular or an anomalous login:
import sysimport osimport jsonimport pandasimport numpyfrom keras.models import Sequentialfrom keras.layers import LSTM, Dense, Dropoutfrom keras.layers.embeddings import Embeddingfrom keras.preprocessing import sequencefrom keras.preprocessing.text import Tokenizerfrom collections import OrderedDict
csv_file = 'data.csv' ...
Read now
Unlock full access