ghmagazine / llm-book

「大規模言語モデル入門」(技術評論社, 2023)のGitHubリポジトリ
https://gihyo.jp/book/2023/978-4-297-13633-8
Apache License 2.0
272 stars 41 forks source link

コードの抜け #30

Closed tetsuomiyoshi closed 6 months ago

tetsuomiyoshi commented 6 months ago

p158のIn[27]:ですが、最後の箇所で以下の記述が抜けてないでしょうか? if best_score < scores["f1-score"]: best_score = scores["f1-score"] #<--(抜け) best_model = model

同様に、p172のIn[40]:の最後の箇所ですが、 if best_score < scores["f1-score"]: best_score = scores["f1-score"] #<--(抜け) best_model_crf = model_crf

rika-N commented 6 months ago

本の読者です、私も同感です。 電子書籍だとページ数が画面サイズによって変わるので、補足です。 6.3.3章のIn[27] と6.3.7章のIn[40] にて上記のコードが抜けていると思います。

Kosuke-Yamada commented 6 months ago

コードの抜けに関するご指摘ありがとうございます。 github上のコードを修正し、今後出版される書籍で対応いたします。