How To Code RNN And LSTM Neural Networks In Python
In [1]:
import matplotlib.pyplot as plt import numpy as np import pandas as pd import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers tf.__version__
Out[1]:
'2.3.1'
Check out following links if you want to learn more about Pandas and Numpy.
What's so special about text?Text is categorized as Sequential data: a document is a sequence of sentences, each sentence is a sequence of words, and each word is a sequence of characters. What is so special about text is that the next word in a sentence depends on:
- Context: which can extend long distances before and after the word, aka long term dependancy.
- Intent: different words can fit in the same contexts depending on the author's intent.
We need a neural network that models sequences. Specifically, given a sequence of words, we want to model the next word,
from Planet SciPy
read more
No comments:
Post a Comment