hyunsu-yang / PyTorch

Deep Learning Zero to All - Pytorch
0 stars 0 forks source link

pytorch study 11주차 #13

Open hyunsu-yang opened 3 years ago

hyunsu-yang commented 3 years ago

강의

목차

hyunsu-yang commented 3 years ago

Lab-11-3 Long sequence

핵심

for i in range(0, len(sentence) - sequence_length): x_str = sentence[i:i + sequence_length] y_str = sentence[i + 1: i + sequence_length + 1] print(i, x_str, '->', y_str)

x_data.append([char_dic[c] for c in x_str])  # x str to index
y_data.append([char_dic[c] for c in y_str])  # y str to index

x_one_hot = [np.eye(dic_size)[x] for x in x_data]


#### 문제
hyunsu-yang commented 3 years ago

Lab-11-4 RNN timeseries

핵심

hyunsu-yang commented 3 years ago
sentence = ("?if you want, don't drum up people together to "
            "collect wood and don't  them tasks and work, but rather "
            "teach them to long for the endless of the sea.")

=> image