self-attention
-
Tensorflow Keras - 6 (Self Attention layer 이용하기)Machine Learning/Tensorflow 2021. 3. 20. 12:59
2년전 캐글에 공유된 소스를 변경하여 작성하였습니다. 출처: www.kaggle.com/arcisad/keras-bidirectional-lstm-self-attention?select=train.csv Keras Bidirectional LSTM + Self-Attention Explore and run machine learning code with Kaggle Notebooks | Using data from multiple data sources www.kaggle.com Data set: www.kaggle.com/c/jigsaw-unintended-bias-in-toxicity-classification/data?select=test.csv Jigsaw Unintended Bias in Tox..
-
Tensorflow Keras - 5 (자연어처리,IMDB 데이터 이용하기)Machine Learning/Tensorflow 2021. 3. 17. 16:42
keras data set 이용하기 IMDB 영화리뷰 데이터입니다. import numpy as np from tensorflow.keras.datasets import imdb from tensorflow.keras.models import Sequential,load_model from tensorflow.keras.layers import Dense,Dropout,LSTM, Embedding,Flatten from tensorflow.keras.preprocessing import sequence from tensorflow.keras.callbacks import ModelCheckpoint import nltk from nltk.corpus import stopwords nltk.download..