Repository navigation
[FAQ Bot] NEW: Homework 3 (2026) Q3: Should I use mutual_info_classif or `mutual_info - #469
Closed
github-actions[bot] wants to merge 1 commit into
Closed
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
3 tasks done
|
For Homework 3 (2026) Q3, use sklearn.metrics.mutual_info_score, matching the Module 3 lesson. mutual_info_classif is a different estimator intended for feature selection. Depending on how the input is represented, it may use an approximate nearest-neighbor method, which can make results depend on random_state. Two common causes of unexpected results are:
So for this homework, compute MI on the original categorical columns, using only the training set: |
alexeygrigorev
added a commit
that referenced
this pull request
Oct 26, 2026
Member
|
Thanks! Merged into main with edits in e2dfd0b: removed the leftover sentence about a solution repo link. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ FAQ NEW
Course: machine-learning-zoomcamp
Section: module-3-homework (This is clearly about Module 3’s classification homework (mutual information + categorical features), so it belongs in the Module 3 homework section.)
Related Issue: #468
Question
Homework 3 (2026) Q3: Should I use
mutual_info_classiformutual_info_scorefor categorical MI? Why do my results change withrandom_state?Decision Rationale
The proposed question asks which mutual-information function to use for HW3 Q3 and explains why results differ; none of the existing FAQs cover the
mutual_info_scorevsmutual_info_classifchoice or the specific tie/seed behavior.Placement Details
module-3-homeworkhw3-q3-mutual-info-score-vs-classif🤖 Generated by FAQ Bot
Closes #468