Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Machine Learning is a subfield of computer science that draws on elements from algorithmic analysis, computational statistics, mathematics, optimization, etc. It is mainly concerned with the use of data to construct models that have high predictive/forecasting ability. Topics include modeling building, applications, theory, etc.
0
votes
1
answer
68
views
Data snooping and information leakage?
I need help in deciding whether my below implementation imposes data snooping bias and information leakage from the test/evaluation set to the train set.
I have a text corpus of 10k+ short online comm …
0
votes
1
answer
1k
views
Semi-supervised classification with SelfTrainingClassifier: no training after calling fit()
I am practicing semi-supervised learning, at the moment experimenting with sklearn.semi_supervised.SelfTrainingClassifier. I found a dataset for multiclass classification (tweet sentiment classificati …
0
votes
1
answer
420
views
Accessing regression coefficients when using MultiOutputRegressor
I am working on a multioutput (nr. targets: 2) regression task. The original data has a huge dimensionality (p>>n, i.e. there are far more predictors than observations), hence for the baseline models …
1
vote
1
answer
290
views
How to combine preprocessor/estimator selection with hyperparameter tuning using sklearn pip...
I'm aware of how to use sklearn.pipeline.Pipeline() for simple and slightly more complicated use cases alike. I know how to set up pipelines for homogeneous as well as heterogeneous data, in the latte …
0
votes
2
answers
680
views
Dynamic creation of sklearn pipeline
I am trying to create an automatic pipeline builder functionality that takes into account a large set of conditions such as the existence of missing values, the scale of numerical features, etc., and …
5
votes
1
answer
292
views
Visualizing effect of regularization for linear regression problem
I wanted to put together an example notebook to demonstrate how regularization makes an impact for such a simple model as a simple linear regression. When executing the below script though, I notice t …
4
votes
1
answer
2k
views
Choose ROC/AUC vs. precision/recall curve?
I am trying to get a clear understanding on various classification metrics, including knowing when to choose ROC/AUC as opposed to opting for the Precision/Recall curve.
I am reading Aurélien Géron's …
1
vote
1
answer
146
views
Trouble understanding regression line learned by SGDRegressor
I am working on a demonstration notebook to better understand online (incremental) learning. I read in sklearn documentation that the number of regression models that support online learning via the p …
3
votes
2
answers
2k
views
Uncertainty about shape of ROC curve
I am working on a binary classification and the plotted ROC curves that I am using for evaluation together with AUC, have seemed strange to me. Here is an example.
I understand that ROC is a visual r …
4
votes
Uncertainty about shape of ROC curve
Oops. I found the reason!
The shape of ROC returned by the roc_curve depends on the number of unique values that are input to roc_curve. In my case I was getting only 3 points on the ROC curve. The mi …
0
votes
1
answer
658
views
Custom vectorizer transformer in sklearn with cross validation
I created a custom transformer class called Vectorizer() that inherits from sklearn's BaseEstimator and TransformerMixin classes. The purpose of this class is to provide vectorizer-specific hyperparam …
0
votes
Using KerasClassifier for training neural network
I managed to solve it!
The core mistake was that scikeras doesn't accept non-numerical input. As such I needed to resort to a workaround by eliminating the text preprocessing steps from my custom buil …
0
votes
1
answer
2k
views
Using KerasClassifier for training neural network
I created a simple neural network for binary spam/ham text classification using pretrained BERT transformer. The current pure-keras implementation works fine. I wanted however to plot certain metrics …