Linked Questions

4 votes
4 answers
3k views

How to handle data imbalance in classification? [duplicate]

I am working on a text classification problem. My data is highly imbalanced. For example, one category has 700 documents while the other has 30. I have around 30 categories. I tried different ...
y2p's user avatar
  • 227
8 votes
2 answers
1k views

Should we balance the data set if the data is intrinsically unbalanced? [duplicate]

Say I want to predict the cancer rate(regression)/predict the whether a person has cancer or not(classification). The data intrinsically has few cancer patients/low cancer rate, say 1/200. And the ...
G. Yu's user avatar
  • 101
1 vote
0 answers
2k views

Repeating rare examples in unbalanced data classification [duplicate]

So I'm trying to train a neural network for a rare event detection. Based on that, I have like 1000 times more examples for non-target (everything else) examples that I have for target examples. So I ...
Moalana's user avatar
  • 121
0 votes
2 answers
627 views

Machine Learning with Skewed Classes in R [duplicate]

I am looking for some suggestions on what methods are appropriate for training a dataset with a high skew in the outcome classes. The ratio of Class 0: Class 1 is about 20:1 and I am looking to ...
xbsd's user avatar
  • 805
0 votes
1 answer
898 views

Does it make sense to up-sample imbalanced data if I care about predicting the right probabilities? [duplicate]

I'm developing a predictive model on a dataset of about 25K observations with the response variable having ~60 classes. There are ~130 predictor variables, all of them binary. In this problem I care ...
vrg87's user avatar
  • 13
2 votes
1 answer
689 views

When do we speak of imbalanced data? [duplicate]

I was wondering, what the threshold is for a dataset to be called 'imbalanced'? Technically every dataset where the target-classes aren't evenly distributed is not balanced. Yet small imbalance ...
Hendrik's user avatar
  • 143
2 votes
2 answers
251 views

Does the ratio of training data (significantly) affects the result? [duplicate]

Say I have two training data of email titles with 10000 entries each. One of them have 2000 ham and 8000 spam, while the other have 5000 ham and 5000 spam. Will predicting any random email with the 2:...
Rizki Hadiaturrasyid's user avatar
1 vote
0 answers
490 views

Classification model on a highly unbalanced dataset [duplicate]

I’m dealing with a highly unbalanced dataset where 20% of data belongs to class A and 80% belongs to class B. It’s very hard for us to produce synthetic class A data. Just wondering if the below ...
user1189332's user avatar
5 votes
2 answers
151 views

Problems with classification in imbalanced datasets [duplicate]

I often read about the problematic of doing classification in imbalanced datasets and methods to address it. Namely, off-the-shelf classifiers learn to minimize some form of total miss-clasffication ...
Gecko's user avatar
  • 171
1 vote
3 answers
272 views

Binary classification with imbalanced classes [duplicate]

I have a manufacture dataset of 65 million rows corresponding to 65 millions distinct items. Out of those 65 millions, I have 60,000 of them that failed a certain test, thus I have very imbalanced ...
user3495042's user avatar
2 votes
0 answers
245 views

Why imbalance in the data set is an issue in data mining and machine learning? [duplicate]

I've analyzed a data set from a credit card company before and it has the famous "unbalanced classes" problem like all the other credit card companies, i.e., in the data set (the information of users ...
KevinKim's user avatar
  • 6,919
1 vote
0 answers
215 views

positive and negative sample count for ConvNets [duplicate]

I have been trying to set up a ConvNet to classify some data. This data should be classified to either 1 (being what I need to get from the image) and 0 for everything that is irrelevant. I have ...
Engin007's user avatar
1 vote
0 answers
162 views

While dealing with imbalanced classes, to what extent can we upsample a minority class? [duplicate]

I have my training data with the following approximate distribution: Negative events : 90,000 positive events : 5,000 Training a model would require to oversample the minority class (and might also ...
Ad94's user avatar
  • 85
0 votes
0 answers
143 views

Handling imbalanced data for classification [duplicate]

What are the best ways to deal with imbalanced datasets for classifying whether or not individuals pay their tuition? The data is 75% positive class (paid) and 25% negative (unpaid). Some approaches I ...
Jane Sully's user avatar
  • 1,030
3 votes
0 answers
130 views

Unbalanced groups and classification errors [duplicate]

I would like to adopt a general strategy for dealing with an very unbalanced dataset, where my "positive" group corresponds to 1/40 of all the observations. The reason why I ask it is because all the ...
Edu's user avatar
  • 561
3 votes
0 answers
116 views

How to make use of less data of a particular class for better modeling? [duplicate]

I have a dataset, say 9000 rows, with some features. Around 8000 belong to class 1 and 1000 to class 0. So, if I am creating a model with any method say SVM, LR, Random forest the model has a tendency ...
Sarath R Nair's user avatar
0 votes
1 answer
53 views

logic behind balancing? [duplicate]

I am a newbie in stats, and while reading: https://towardsdatascience.com/having-an-imbalanced-dataset-here-is-how-you-can-solve-it-1640568947eb I don't seem to understand why is an imbalanced ...
Chicago1988's user avatar
1 vote
1 answer
61 views

Problem of unbalanced data [duplicate]

unbalanced data is an issue that can effect the performnce of classification model ,several remides can be done to balance the data two of them are upsampling and downsampling , my questions is : how ...
ayoub's user avatar
  • 31
1 vote
1 answer
58 views

Cross Validation in an Imbalanced data set [duplicate]

What is the point of oversampling an imbalanced data set if the ratio of the classes needs to be preserved in Cross validation ? If I have 1000 rows in a data set where 800 rows belong to one class ...
learner's user avatar
  • 627
0 votes
0 answers
45 views

Choosing better samples for downsampling [duplicate]

I'm training a classification model for highly unbalanced data where hits are pairs that have similarity of almost 1 on independent metric. Everything else are non hits. Does it make sense to pick ...
Sergej Andrejev's user avatar
0 votes
0 answers
44 views

After applying SMOTE, the class distribution doesn't match the real world. Is this a problem? [duplicate]

I have an extremely unbalanced dataset with two classes: 1: 1,800 # class 1 0: 40,000 # class 0 This is real world customer data of churned/not churned If I ...
SCool's user avatar
  • 277
0 votes
0 answers
34 views

unbalaced data set in classification tasks [duplicate]

How do I judge whether the dataset is unbalanced (is it when the minority class inferior of 15%) could us use the test CR after balancing the data?
mirette's user avatar
  • 13
0 votes
0 answers
31 views

Real life class imbalance [duplicate]

Fellow like-minded people, I'm writing my thesis in fake news detection on scrapped twitter data and facing an issue (among many others). Fake news consist of less than 10% of the total tweets or ...
Andrei Catana's user avatar
0 votes
0 answers
28 views

Deal with imbalanced data [duplicate]

Building machine learning models to do forecast, sometimes the dataset was used is imbalanced, and there are some methods to deal with this issue such as the resample method and choose other metrics(...
Amy's user avatar
  • 149
0 votes
1 answer
26 views

In a logistic regression model focused on prediction, what are the problems associated with a big difference in the sample sizes of a binary variable? [duplicate]

In short, I'm curious about the problems associated with a difference in the sample size of respondents by a binary variable when fitting a logit model focused on prediction rather than causality. By ...
Will M's user avatar
  • 123
1 vote
0 answers
24 views

Risks of disproportionate numbers of training examples for different classes? [duplicate]

fairly new to machine learning so please be gentle! I was wondering what the risks might be if I have significantly more examples for one class than the other when training a 2-D perceptron; for ...
Spencer Norris's user avatar
0 votes
0 answers
18 views

At which threshold is unbalanced data a problem for a binary classification tree? [duplicate]

I want to build a binary classification tree to clasfiy wether a person is working or not and use the model for prediction. I read that unbalanced data could be a problem. Now i ask myself at which ...
MasterStudent1992's user avatar
0 votes
0 answers
17 views

Sampling in case of imbalanced dataset [duplicate]

From a course of AI for Medical Diagnosis, it is explained that validation and test sets should be balanced, 50-50 cases of both cases 0 and 1, so that the performance of the model can be assessed. ...
Félix Francisco Enríquez Romer's user avatar
1 vote
0 answers
16 views

Learning Distribution of Data [duplicate]

Sometimes it's important to generate data due to data imbalance issues. I heard that data augmentation by leaning distribution of data is a hot topic now. Could you please give me some resources and ...
Avv's user avatar
  • 249
0 votes
0 answers
16 views

Will more training data of one class destroy the good model? [duplicate]

I am facing a binary classification problem that I don't know I should use more data or not. I have one label 'A' with 10 training examples. And another label 'B' with also 10 training examples. By ...
Lion Lai's user avatar
  • 135
1 vote
0 answers
12 views

Multiple class prediction with unbalanced data [duplicate]

I have 4 different web sites (A/B/C/D) and need to predict whether a user will rather convert on A/B/C or D or not convert at all. My data set has 100000 rows and only 100 of those are converted user (...
Tanni S's user avatar
  • 11
0 votes
0 answers
8 views

When should one do class rebalancing? [duplicate]

Does anybody know a source when class rebalancing should be considered? Say one has a very small dataset. About 70 observations. When would class rebalancing make sense? When the 0/1 ratio is 70/30, ...
Clemens Haerder's user avatar
247 votes
11 answers
139k views

Why is accuracy not the best measure for assessing classification models?

This is a general question that was asked indirectly multiple times in here, but it lacks a single authoritative answer. It would be great to have a detailed answer to this for the reference. ...
Tim's user avatar
  • 141k
126 votes
3 answers
145k views

Does an unbalanced sample matter when doing logistic regression?

Okay, so I think I have a decent enough sample, taking into account the 20:1 rule of thumb: a fairly large sample (N=374) for a total of 7 candidate predictor variables. My problem is the following: ...
Michiel's user avatar
  • 1,363
69 votes
7 answers
59k views

Binary classification with strongly unbalanced classes

I have a data set in the form of (features, binary output 0 or 1), but 1 happens pretty rarely, so just by always predicting 0, I get accuracy between 70% and 90% (depending on the particular data I ...
LazyCat's user avatar
  • 892
131 votes
5 answers
27k views

Are unbalanced datasets problematic, and (how) does oversampling (purport to) help?

TL;DR See title. Motivation I am hoping for a canonical answer along the lines of "(1) No, (2) Not applicable, because (1)", which we can use to close many wrong questions about unbalanced ...
Stephan Kolassa's user avatar
66 votes
5 answers
77k views

Training a decision tree against unbalanced data

I'm new to data mining and I'm trying to train a decision tree against a data set which is highly unbalanced. However, I'm having problems with poor predictive accuracy. The data consists of students ...
chrisb's user avatar
  • 925
54 votes
4 answers
29k views

Class imbalance in Supervised Machine Learning

This is a question in general, not specific to any method or data set. How do we deal with a class imbalance problem in Supervised Machine learning where the number of 0 is around 90% and number of 1 ...
NG_21's user avatar
  • 1,556
64 votes
4 answers
10k views

What is the root cause of the class imbalance problem?

I've been thinking a lot about the "class imbalance problem" in machine/statistical learning lately, and am drawing ever deeper into a feeling that I just don't understand what is going on. ...
Matthew Drury's user avatar
48 votes
1 answer
14k views

Does down-sampling change logistic regression coefficients?

If I have a dataset with a very rare positive class, and I down-sample the negative class, then perform a logistic regression, do I need to adjust the regression coefficients to reflect the fact that ...
Zach's user avatar
  • 24.4k
21 votes
3 answers
39k views

SVM for unbalanced data

I want to attempt to use Support Vector Machines (SVMs) on my dataset. Before I attempt the problem though, I was warned that SVMs dont perform well on extremely unbalanced data. In my case, I can ...
DankMasterDan's user avatar
36 votes
5 answers
16k views

What problem does oversampling, undersampling, and SMOTE solve?

In a recent, well recieved, question, Tim asks when is unbalanced data really a problem in Machine Learning? The premise of the question is that there is a lot of machine learning literature ...
Matthew Drury's user avatar
10 votes
5 answers
2k views

Could we explain the disadvantage of imbalanced data mathematically?

Simple setup: observed response is binary (yes/no, 0/1, positive/negative). use logistic regression to model the probability of the response being, say, 1: $P(Y=1|X)$. the MLE of the model ...
lambda's user avatar
  • 135
13 votes
2 answers
4k views

Reference for log-loss (cross-entropy)?

I'm trying to track down the original reference for the logarithmic loss (logarithmic scoring rule, cross-entropy), usually defined as: $$L_{log}=y_{true} \log(p) + (1-y_{true}) \log(1-p)$$ For the ...
Gabriel's user avatar
  • 4,362
7 votes
4 answers
2k views

Data Imbalance: what would be an ideal number(ratio) of newly added class's data?

Assume that I have 10 classes with 100 samples for each class—same # of samples, perfect balanced dataset. I want to add 3 new classes, and which of the following is the best option for the number of ...
Kevin Choi's user avatar
13 votes
2 answers
6k views

Bagging with oversampling for rare event predictive models

Does anyone know if the following has been described and (either way) if it sounds like a plausible method for learning a predictive model with a very unbalanced target variable? Often in CRM ...
B_Miner's user avatar
  • 8,850
6 votes
3 answers
8k views

Does oversampling/undersampling change the distribution of the data?

I have an imbalanced dataset (10000 positives and 300 negatives) and have divided this into train and test sets. I perform oversampling/undersampling only on the train set since doing this on the test ...
Anuj's user avatar
  • 69
5 votes
2 answers
9k views

Classification algorithms for handling Imbalanced data sets

I’m working on a classification problem where dataset is extremely imbalanced ( roughly 13000 "zero" and 100 "one" responses). As the first step, I trained a Logistic Regression and changing the ...
Upul's user avatar
  • 647
6 votes
1 answer
6k views

How to balance classification?

I have a binary classification problem, where my training data is 70% positive labeled and 30% negative labelled. I use a logistic loss and it always classifies examples positive on the test data. ...
siamii's user avatar
  • 2,077
7 votes
1 answer
4k views

Does class balancing introduce bias?

I have a data set that is imbalanced, the prediction rate is not much better than the base line without doing any class balance. I have two classes and I can't collect more data. What I have done: ...
iordanis's user avatar
  • 505

15 30 50 per page