classification Questions
2
Solved
I am working on a binary classification problem using Random forest and using LIME explainer to explain the predictions.
I used the below code to generate LIME explanations
import lime
import lime....
Brannan asked 28/3, 2022 at 11:33
4
Solved
I have a classification problem and I would like to test all the available algorithms to test their performance in tackling the problem.
If you know any classification algorithm other than th...
Spessartite asked 25/1, 2017 at 5:48
2
When performing classification (for example, logistic regression) with an imbalanced dataset (e.g., fraud detection), is it best to scale/zscore/standardize the features before over-sampling the mi...
Sparry asked 21/1, 2018 at 17:10
4
Solved
I Can calculate accuracy after each epoch using this code . But, I want to calculate the accuracy for each class at the end . how can i do that?
I have two folders train and val . each folder has 7...
Sauger asked 17/7, 2020 at 16:35
2
Analysing time series data of bike trails, I would like to know the time interval for each plateau ,ascent and descent.Sample csv file is uploaded here.
import pandas as pd
import numpy as np
impo...
Cly asked 30/11, 2018 at 4:29
3
Solved
I have a dataset
Inp1 Inp2 Output
A,B,C AI,UI,JI Animals
L,M,N LI,DO,LI Noun
X,Y AI,UI Extras
For these values, I need to apply a ML algorithm. Which algorithm would be best suited to find relatio...
Excisable asked 30/4, 2022 at 12:38
9
Given a set of data very similar to the Motley Fool CAPS system, where individual users enter BUY and SELL recommendations on various equities. What I would like to do is show each recommendation a...
Nicholenicholl asked 21/4, 2010 at 22:24
3
Solved
I have a time-series dataset with two lables (0 and 1). I am using Dynamic Time Warping (DTW) as a similarity measure for classification using k-nearest neighbour (kNN) as described in these two wo...
Whorl asked 13/7, 2019 at 1:30
8
Solved
I am using an rpart classifier in R. The question is - I would want to test the trained classifier on a test data. This is fine - I can use the predict.rpart function.
But I also want to calculate...
Virtuoso asked 14/12, 2011 at 4:6
1
After preprocessing my data, like missing value replacement and outlier detection I partitioned my data using randomized and remove percentage filter using WEKA. My dataset is a highly skewed datas...
Teakwood asked 22/6, 2022 at 12:18
4
i'm trying to run a very simple example where XGBoost takes some data and do a binary classification. The documentation says that xgboost outputs the probabilities when "binary:logistic" is used
...
Disperse asked 27/6, 2016 at 18:10
1
For a particular prediction problem, I observed that a certain variable ranks high in the XGBoost feature importance that gets generated (on the basis of Gain) while it ranks quite low in the SHAP ...
Gangue asked 15/6, 2022 at 6:0
4
Solved
Attached model shows how to add bias in case of the unbalanced classification problem initial_bias = np.log([pos/neg]). Is there a way to add bias if you have multi-class classification with unbala...
Odeen asked 19/2, 2020 at 18:45
2
Solved
question 1)
The answer to this question suggested that for a binary classification problem I could use num_labels as 1 (positive or not) or 2 (positive and negative). Is there any guideline regardi...
Placer asked 6/4, 2022 at 13:53
3
Does any one know how to set parameter of alpha when doing naive bayes classification?
E.g. I used bag of words firstly to build the feature matrix and each cell of matrix is counts of words, and ...
Pollak asked 20/11, 2015 at 15:59
2
I imported sklearn DecisionBoundaryDisplay via the below command in my Google Colab file.
from sklearn.inspection import DecisionBoundaryDisplay
And I'm getting the following error.
ImportError: ...
Toll asked 15/5, 2022 at 7:33
6
Solved
I'm attempting to make a classifier that chooses a rating (1-5) for a item i. For each item i, I have a vector x containing about 40 different quantities pertaining to i. I also have a gold standar...
Windgall asked 16/8, 2010 at 16:25
2
I usually get to feature importance using
regr = XGBClassifier()
regr.fit(X, y)
regr.feature_importances_
where type(regr) is .
However, I have a pickled mXGBoost model, which when unpacked ret...
Gelation asked 27/8, 2019 at 20:16
4
I am new to pyTorch and I am trying to Create a Classifier where I have around 10 kinds of Images Folder Dataset, for this task I am using Pretrained model( MobileNet_v2 ) but the problem is I am n...
Kila asked 31/7, 2019 at 7:16
3
Solved
Can someone please explain (with example maybe) what is the difference between OneVsRestClassifier and MultiOutputClassifier in scikit-learn?
I've read documentation and I've understood that we u...
Atreus asked 15/3, 2017 at 19:54
1
Solved
I am using FastAPI to create an API that receives small audio files from a mobile app. In this API I do processing of the signal and I am able to return a response after classifying that sound. The...
Schnorr asked 6/4, 2022 at 11:16
1
Solved
I am fine tuning longformer and then making prediction using TextClassificationPipeline and model(**inputs) methods. I am not sure why I get different results
import pandas as pd
import datasets
fr...
Silicium asked 5/4, 2022 at 16:47
1
Solved
I am working on a binary classification using random forest and trying out SHAP to explain the model predictions.
However, I would like to convert the SHAP local explanation plots with values into ...
Shonda asked 24/3, 2022 at 9:6
1
I tried to read the docs for RepeatedStratifiedKFold and StratifiedKFold, but couldn't tell the difference between the two methods except that RepeatedStratifiedKFold repeats StratifiedKFold n time...
Moyra asked 19/2, 2022 at 0:22
3
Solved
According to the documentation it is possible to specify different loss functions to SGDClassifier. And as far as I understand log loss is a cross-entropy loss function which theoretically can hand...
Doucette asked 15/3, 2017 at 3:49
© 2022 - 2025 — McMap. All rights reserved.