Random Forest

Priyesh Dave 1 Reputation point
2022-01-19T13:49:03.767+00:00

I am currently working on Career Guidance prediction using Machine Learning.

The dataset has 38 features. For feature selection I tried using mutual_info_classif for getting the mutual information of my features and got the list of important features.

The Second approach I followed is using SelectKBest with mutual_info_classif as my score_func. On this approach I got some other list of features.

Is it normal to get different results ?
Can anyone please help me out?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,580 questions
Azure Data Science Virtual Machines
Azure Data Science Virtual Machines
Azure Virtual Machine images that are pre-installed, configured, and tested with several commonly used tools for data analytics, machine learning, and artificial intelligence training.
67 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 46,991 Reputation points
    2022-01-20T04:02:53.047+00:00

    Hello @Priyesh Dave

    Thanks for reaching out to us here. Based on my understanding, if you keep X, Y the same, and you are using sklearn.feature_selection.SelectKBest(score_func= mutual_info_classif , *, k= n) the result should be the same.

    Are you manually rank the feature with mutual_info_classif score? The SelectKBest function is basically return the K highest feature based on the X and Y.

    If this is not your case, I would highly recommend you to check with Scikit-learn team by email : https://mail.python.org/mailman/listinfo/scikit-learn

    Or forum: https://stackoverflow.com/questions/tagged/scikit-learn

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments