Questions tagged [scikit-learn]
A machine-learning library for Python. Use this tag for any on-topic question that (a) involves scikit-learn either as a critical part of the question or expected answer, & (b) is not just about how to use scikit-learn.
1,819 questions
2 votes
2 answers
73 views
How can Kernel Density Estimation learn multiple classes?
So I've stumbled upon this example in the Sklearn website, where a KDE instance is trained with handwritten digits, and then used to synthesize samples : https://scikit-learn.org/stable/auto_examples/...
1 vote
1 answer
108 views
Classification as a substitute for survival analysis in a specific context
I am not a statistician, therefore, I offer my apologies in case the following observations seem trivial. The data available pertains to the time to event for a particular process. Several specific ...
1 vote
1 answer
107 views
High recall, low precision - no imbalanced data
I have created a custom program that outputs a prediction based on filtering and counting (no ML) and would now like to compare the program to some typical methods, such as scikit-learn and xgboost. ...
1 vote
0 answers
64 views
Why is DecisionTree using same feature and same condition twice
When trying to fit scikit-learn DecisionTreeClassifier on my data, I am observing some weird behavior. x[54] (a boolan feature) ...
1 vote
0 answers
82 views
Casting floats to int in XGBRegressor a good idea? [closed]
I'm using Scikit Learn with Python and making predictions using XGBRegressor. Out of ...
0 votes
0 answers
20 views
Discrepancy in Signs Between scikit-learn PCA and Custom PCA Implementation [duplicate]
I’m implementing my own version of PCA and comparing it with scikit-learn's PCA. However, I’m noticing a discrepancy in the signs of the principal components. Using scikit-learn ...
0 votes
0 answers
49 views
How might I emulate R's selectNcomp in scikit learn?
R's mvr package has a useful function, selectNcomp, for automated selection of retained latent variables in cross-validated PLS models, through implementation of the heuristic one standard error rule:...
3 votes
1 answer
179 views
Why does adding an intercept change roc_auc_score in python?
Why does adding a constant change the value of ROC AUC in python sklearn? ...