3 votes
Accepted

How to treat duplicates while dealing with real data?

Assuming your dataset should be a random sample drawn from your population, it depends on what you define as a duplicate. I see two scenarios: "Duplicate" defined as two (or more) distinct ...
  • 442
2 votes
Accepted

What's a Good $R^2$ Score in K Nearest Neighbors?

In general, it is hard to say what constitutes a good score. I have seen papers in top journals that have $R^2<0.1$. At the same time, it might be the case for a different problem that $R^2=0.9$ is ...
  • 43.1k
2 votes
Accepted

Massive difference between R's glmnet and Python's sklearn regarding Lasso regression

As always, it helps to make plots. Here I plot the cv.glmnet predictions on the left and the LassoCV predictions on the right, ...
  • 7,220
1 vote

how to include minority class in all folds

I think including minority class in all folds and answering imbalance problem are two separate issues. If you use StratifiedKFold with 30 folds, that means you will ...
  • 129
1 vote
Accepted

How to find the contributing probability of individual features in a machine learning model?

You can look at what is known as the "marginal effect" of variables. This doesn't quite give you what you want, because all marginal effects do not sum to the probability, but it is a way ...
1 vote
Accepted

Scikit-learn: mutual info regression

(1) is correct. mutual_info_regression calculates the mutual information between each feature of $X$ and the target variable $Y$ independent of the remaining ...
  • 171

Only top scored, non community-wiki answers of a minimum length are eligible