Data models and responsible machine learning
導入済み
6:00
機械学習
スパムフィルターにはルールリストを与えられません。代わりに、数千通のメールに対して「スパム」または「非スパム」というラベルが付けられ、パターンを自ら発見します。スパマーが…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| training data/ˈtreɪnɪŋ ˈdeɪtə/ | The examples used to fit a machine-learning model's parameters or decision rules. |
| machine learning/məˈʃiːn ˈlɜːnɪŋ/ | Methods that use data to fit models for making predictions or identifying patterns. |
| supervised learning/ˈsuːpəvaɪzd ˈlɜːnɪŋ/ | Learning a model from examples supplied with target answers or labels. |
| confusion matrix/kənˈfjuːʒn ˈmeɪtrɪks/ | A table comparing predicted classes with actual classes, including correct and incorrect classifications. |
| precision/prɪˈsɪʒn/ | in classification, the fraction of predicted positives that are truly positive |
| recall/ˈriːkɔːl/ | True positives divided by all actual positives, when that denominator is nonzero. |
この観察を説明する要因は何か?
- モデルは学習データ内で近道(shortcut)を学ぶことで高いスコアを得ることがある。評価では、適切な unseen(見知らぬ)サンプルを用いて意図したタスクを試す必要がある。
Why did Amazon's experimental tool mark down some résumés?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
It copied patterns in its training data.
モデルを構築する
- リレーショナルデータベースは、テーブル、キー、および関係を使用してデータを整理する。
- マシンラーニングはデータからパターンを推定する。
- 学習用データと評価用データは異なる役割を果たす。
- プライマリキー: レコードを一意に識別する属性セット。
- データリーク: 意図された予測時点では利用不可能だった情報の使用。
Match each task to a kind of learning.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Labels, groups, rewards.
これを検証できる証拠を選ぶ
- 主キーは記録を一意に識別し、外部キーは記録同士を関連づける。
- 予測において、漏れ出た情報は実際の意思決定時に利用できない可能性がある。
- 正確性だけでは、不均衡なターゲット分布が隠されていることがある。
実験室での活動: 架空の予約記録を使用して、エンティティ、属性、関係を特定する。学習練習として、公開された非敏感なデータセットを使用し、学習用データとテストデータを分離し、エラーによって影響を受ける可能性のある人を説明すること。現在の 2027 CS の目標範囲はガイドを待っている。
90 of 100 cases are the majority class. What accuracy (%) does a model get by always predicting the majority?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
It finds none of the minority.
既知の量から始める
- 既知: クラッサーは 100 ケースの中で 90 正しい予測を行う。
- 正確性 = (正解数/総数) × 100 = 90%。
- 90 ケースが単一クラスに属する場合、常にそのクラスを予測しても同じ正確性を示すが、少数派クラスのケースにはすべて失敗する可能性がある。
あなたの番: モデルが 80 回の予測のうち 72 回正解した場合、正確性の百分率を求めよ。
Accuracy and class balance
Compare overall accuracy, per-class recall and positive precision. Different denominators answer different questions, and class balance affects overall accuracy.
What does recall measure?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
TP ÷ (TP + FN).
結論とその限界を確認する
- 高い正確性は、公平性や因果的理解の証拠ではない。
- データベースの主キーは、単に重要そうに見えるフィールドのことではない。
誤りである: 正確性が 90% のクラッサーは、すべてのクラスを等しく扱う必要があるわけではない。100 ケース中 90 がクラスAの場合、常にAと答えると 90% のスコアを得るが、他のクラスはすべて失敗する。正確性は、クラスごとの結果とクラスのバランスと共に読み取る必要がある。
- リレーショナルデータベースは、テーブル、キー、および関係を使用してデータを整理する。
- 主キーは記録を一意に識別し、外部キーは記録同士を関連づける。
- 注意: 高い正確性は、公平性や因果的理解の証拠ではない。
A model finds 30 of 40 real cases and makes 20 false alarms. What is its precision in %?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
30 ÷ (30 + 20) = 60%.
このカードは新しいため、翻訳ができるまで英語で表示されます。
Responsible use
- Check training data 训练数据 for under-represented groups; test performance separately for each group.
- Overfitting: a model that memorises training data performs badly on new data.
An overfitted model performs well on new data.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
It memorises training data.
このカードは新しいため、翻訳ができるまで英語で表示されます。
High accuracy does not mean a fair or useful model. With imbalanced classes, report precision 精确率 and recall, and check whether errors fall unfairly on one group.
A model with 98% accuracy must be fair.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Check errors by group.
このカードは新しいため、翻訳ができるまで英語で表示されます。
Machine learning 机器学习 copies patterns in training data, including biased ones. Test on unseen data, use a confusion matrix, report precision and recall as well as accuracy, and check errors group by group.
A school proposes a model to predict which students will fail. Explain two risks and how you would test the model responsibly.
Data, errors, testing.
何が問題でしたか?この内容はサイトの運営チームだけが確認します。