0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

生成AIのハードルを下げたい!Advent Calendar 2023

Day 17

『書き込み式Kaggle攻略法』Powered by GPT-4 Code Interpreter

Last updated at Posted at 2023-12-14

はじめに

いきなりですが、結論です。
『書き込み式Kaggle攻略法』という、Kaggleに取り組むにあたって、書き込みながらコンペティションの理解を深めていけるチェックリストを作りました。Word形式にしているので、PCはもちろん、印刷して直接書き込むこともできます。

『書き込み式Kaggle攻略法』のWordは、下記からダウンロードできます

『書き込み式Kaggle攻略法』(English)
Kaggle Competition Checklist
Competition Overview
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Data Analysis
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Model Development
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Evaluation and Metrics
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Progress Tracking
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Challenges and Insights
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Key Learnings and Takeaways
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Schedule
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Key Metrics
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Related Competitions
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Data Overview
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Data Size and Format
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Submission Format
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Notable Discussions
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Notable Notebooks
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Data Cleaning and Preprocessing
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Feature Engineering
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Model Selection
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Hyperparameter Tuning
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Cross-validation Strategies
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Team Collaboration Strategy
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Resource Allocation
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Risk Assessment
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Backup Plans
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Literature Review
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Technology Stack
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Experiment Logging
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Result Analysis
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
Final Submission Preparation
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................

『書き込み式Kaggle攻略法』(日本語)
Kaggleコンペティションチェックリスト
コンペティション概要
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
データ分析
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
モデル開発
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
評価と指標
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
進捗追跡
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
課題と洞察
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
主要な学びと持ち帰りポイント
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
スケジュール
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
重要な指標
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
関連するコンペティション
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
データ概要
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
データのサイズとフォーマット
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
提出形式
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
注目のディスカッション
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
注目のノートブック
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
データのクリーニングと前処理
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
特徴量エンジニアリング
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
モデル選択
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
ハイパーパラメータチューニング
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
クロスバリデーション戦略
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
チームコラボレーション戦略
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
リソース配分
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
リスク評価
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
バックアッププラン
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
文献レビュー
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
技術スタック
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
実験記録
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
結果分析
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
最終提出物の準備
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................
............................................................................................................

この記事のタイトルにPowered by GPT-4 Code Interpreterを入れた理由

この『書き込み式Kaggle攻略法』は、GPT-4 Code Interpreterによってほぼ生成させました。ChatGPTを用いることでテキスト生成ができることは広く知られていると思いますが、Code Interpreterによって任意のファイル形式で出力できることは、あまり知られていないと思ったので手順を簡単に説明したいと思います。

Code InterpreterによってWord形式で出力させる手順(『書き込み式Kaggle攻略法』を例に)

1次依頼

下記のようにやりたいことを箇条書きでまとめます。
出力形式を指定することでダウンロード可能な形で出力させることが可能です。
参考情報があれば添付します。

- 『書き込み式Kaggle攻略法』を作りたいです。
- Kaggleに取り組むにあたって、書き込みながらコンペの理解を深めていくチェックリストを作りたいです。
- フォーマットは添付のような感じでお願いします。
- Word形式でダウンロードしたいです。

image.png

  • ハイフン形式の箇条書きなど、マークダウン記法でプロンプトを書くとChatGPTに意図が伝わりやすいです
  • 参考情報など例示を行うことで、フォーマットをソフトに指定することができます

n次依頼(nは2以上の整数)

出力に物足りなさを感じたので、追加の依頼を行ないます。
満足いくクオリティになるまでやり取りを繰り返します。

image.png

  • 一度に全てを実現する神プロンプトを書くというよりは、対話を通して徐々に目標に近づいていくイメージです(いわゆるFew-shot Promptingです)

おわりに

この記事を書くにあたって、Few-shot Promptingなどのプロンプトエンジニアリングの技法をいくつか活用しました。ただ、これらの手法は専門的な表現に見えるかもしれませんが、実は多くの人が無意識のうちに使用していると思います。さらに、ChatGPTがWord形式など、様々なファイル形式で出力できることは、まだあまり知られていないようです。そこで、この点を記事の主題にしました。

また、『書き込み式Kaggle攻略法』は、実際にKaggleのコンペティションで役立つものになると思います。このチェックリストは基本的にはそのままで使える状態ですが、より効果的にするためには、ご自身で細かい調整を加えていただくことをお勧めします。

関連記事

https://qiita.com/Isaka-code/items/3935cdb2a0bda331e07c

0
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?