Created
October 10, 2022 15:50
-
-
Save jcblw/e26f98aa247c1aa1035f85afad7c683c to your computer and use it in GitHub Desktop.
Used for a Medium article
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
# Create a model for predicting the next word | |
model = tf.keras.Sequential() | |
# Load the data from local CSV file | |
data = pd.read_csv('data.csv') | |
# Split the data into training and testing | |
train, test = train_test_split(data, test_size=0.2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment