code:gpt_example
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
code:gpt_example [2020/08/21 15:24] – [V2] rex8312 | code:gpt_example [2024/03/23 02:42] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
- | ====== | + | ====== |
* 참고 | * 참고 | ||
줄 263: | 줄 263: | ||
step = 0 | step = 0 | ||
train_loss_list = list() | train_loss_list = list() | ||
- | | + | |
| | ||
for epoch in tqdm.trange(args.max_epoch): | for epoch in tqdm.trange(args.max_epoch): | ||
줄 295: | 줄 295: | ||
| | ||
loss = (0.5 * (tgt - gen) ** 2).mean() | loss = (0.5 * (tgt - gen) ** 2).mean() | ||
- | | + | |
+ | test_score_list.append((step, | ||
mlab.plot(tgt.cpu().numpy()[0, | mlab.plot(tgt.cpu().numpy()[0, | ||
mlab.oplot(gen.cpu().numpy()[0, | mlab.oplot(gen.cpu().numpy()[0, | ||
- | | + | tqdm.tqdm.write(plotille.scatter(*zip(*test_score_list[-1000:]), height=25)) |
tqdm.tqdm.write(str(args)) | tqdm.tqdm.write(str(args)) | ||
code/gpt_example.1598023441.txt.gz · 마지막으로 수정됨: (바깥 편집)