← 返回卡片

原书出处

Causal AI

核验版本的摘录快照 · 导入于 2026-11-14T08:43:24.527Z

Finally, we’ll train another model for inferring the King vignette given a Prince vignette. We’ll use this in inference later. Listing 13.13 Function to train the Prince to King model p2k_data = create_seq2seq_datasets( df["Prince"], df["King"]) train_dataset_prince2king, val_dataset_prince2king = p2k_data prince2king_model = train_seq2seq_model( prince2king_model_path, train_dataset_prince2king, val_dataset_prince2king, epochs=6 ) Running the preceding training procedure will take some time, especially if you’re not using GPU. Fortunately, there are

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-13.xhtml

EPUB SHA-256:e55e7dc9d7966ea79311f2bc8d5bef7371a6dbb65240f11a2b3e44180b934e72