CNN - imbalanced classes, class weights vs data augmentationMulticlass classification in a balanced dataset with one high-priority labelHandling large imbalanced data setDeep CNN with variable number of classes and “vanishing” dataClass distribution discrepancy training/validation. Loss now uninterpretable?Setting class-weights in a batch in where a certain class is not presentMacro- or micro-average for imbalanced class problemsHow to use class_weight parmater for validation set?Class weights for imbalanced data in multilabel problemsWhich method should be considered to evaluate the imbalanced multi-class classification?issue with early-stopping on f1 score with imbalanced dataCNN architecture design guidelines when doing multilabel classification of 1K possible “easy” classes
Existence of a celestial body big enough for early civilization to be thought of as a second moon
Optimising a list searching algorithm
Unfrosted light bulb
If "dar" means "to give", what does "daros" mean?
A Ri-diddley-iley Riddle
Calculate the frequency of characters in a string
Should I use acronyms in dialogues before telling the readers what it stands for in fiction?
두음법칙 - When did North and South diverge in pronunciation of initial ㄹ?
Using Past-Perfect interchangeably with the Past Continuous
When did antialiasing start being available?
Can a wizard cast a spell during their first turn of combat if they initiated combat by releasing a readied spell?
Relation between independence and correlation of uniform random variables
How is the partial sum of a geometric sequence calculated?
Pronounciation of the combination "st" in spanish accents
Fewest number of steps to reach 200 using special calculator
What are substitutions for coconut in curry?
Is it insecure to send a password in a `curl` command?
I got the following comment from a reputed math journal. What does it mean?
How to terminate ping <dest> &
How are passwords stolen from companies if they only store hashes?
Comment Box for Substitution Method of Integrals
PTIJ What is the inyan of the Konami code in Uncle Moishy's song?
Do I need to consider instance restrictions when showing a language is in P?
Does the attack bonus from a Masterwork weapon stack with the attack bonus from Masterwork ammunition?
CNN - imbalanced classes, class weights vs data augmentation
Multiclass classification in a balanced dataset with one high-priority labelHandling large imbalanced data setDeep CNN with variable number of classes and “vanishing” dataClass distribution discrepancy training/validation. Loss now uninterpretable?Setting class-weights in a batch in where a certain class is not presentMacro- or micro-average for imbalanced class problemsHow to use class_weight parmater for validation set?Class weights for imbalanced data in multilabel problemsWhich method should be considered to evaluate the imbalanced multi-class classification?issue with early-stopping on f1 score with imbalanced dataCNN architecture design guidelines when doing multilabel classification of 1K possible “easy” classes
$begingroup$
I have a set of data with a few strongly imbalanced classes, eg the smallest class is about 54 times smaller than the largest. Therefore, data augmentation in order to equalize the size of classes seems to me a bad idea (in the example above each image would have to be augmented 54 times on average). So I thought that I could do less augmentation of minority classes, and then use class weights in the loss function. Is this approach better than the mere augmentation or just the use of class weights ?
cnn class-imbalance weighted-data data-augmentation
$endgroup$
add a comment |
$begingroup$
I have a set of data with a few strongly imbalanced classes, eg the smallest class is about 54 times smaller than the largest. Therefore, data augmentation in order to equalize the size of classes seems to me a bad idea (in the example above each image would have to be augmented 54 times on average). So I thought that I could do less augmentation of minority classes, and then use class weights in the loss function. Is this approach better than the mere augmentation or just the use of class weights ?
cnn class-imbalance weighted-data data-augmentation
$endgroup$
add a comment |
$begingroup$
I have a set of data with a few strongly imbalanced classes, eg the smallest class is about 54 times smaller than the largest. Therefore, data augmentation in order to equalize the size of classes seems to me a bad idea (in the example above each image would have to be augmented 54 times on average). So I thought that I could do less augmentation of minority classes, and then use class weights in the loss function. Is this approach better than the mere augmentation or just the use of class weights ?
cnn class-imbalance weighted-data data-augmentation
$endgroup$
I have a set of data with a few strongly imbalanced classes, eg the smallest class is about 54 times smaller than the largest. Therefore, data augmentation in order to equalize the size of classes seems to me a bad idea (in the example above each image would have to be augmented 54 times on average). So I thought that I could do less augmentation of minority classes, and then use class weights in the loss function. Is this approach better than the mere augmentation or just the use of class weights ?
cnn class-imbalance weighted-data data-augmentation
cnn class-imbalance weighted-data data-augmentation
asked yesterday
I.D.MI.D.M
326
326
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Is this approach better than the mere
augmentation or just the use of class weights ?
Note that data augmentation is the process of changing the training samples (e.g. for images, flipping them, changing their luminosity, adding noise, etc.) and adding them back into the set. It is used for enriching the diversity of training samples, thus, in this aspect it cannot be replaced with class weighting. However, it is related to over-sampling since we can both enrich and increase the size of a class via data-augmentation. For now we are only focusing on the size increasing part, i.e. data over-sampling.
Data-oversampling and class weighting are equivalent. Copying the samples of a class 3X is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set.
Note that based on this equivalency we can mix and match. Increasing the size of a class 6X $equiv$ increasing the weight 6X $equiv$ increasing the size 3X and increasing the weight 2X.
Class weights vs over-sampling in more detail
I copied my answer from here, since the solutions are almost the same but questions are the reverse of each other.
This challenge can be tackled in two places:
Data: as you mentioned, this is done by artificially increasing the number of samples for under-represented class $uc$. This produces the same effect as data-sets that are naturally balanced,
Model: this is generally done by over-penalizing the miss-classification of $uc$ compared to other classes. One place for this modification is the loss function. A frequently used loss function in classification is cross entropy. It can be modified for this purpose as follows. Let $y_ik$ be $1$ if $k$ is the true class of data point $i$, and be $0$ otherwise, and $y'_ik in (0, 1]$ be the corresponding model estimation. The original cross-entropy can be written as:
$$H_y(y')=-sum_isum_k=1^Ky_iklog(y'_ik)$$
which can be weighted as
$$H_y(y')=-sum_isum_k=1^Kcolorbluew_ky_iklog(y'_ik)$$
For example, by setting $w_uc = 10$ and $w_k neq uc=1$, we are essentially telling the model that miss-classifying $1$ member from $uc$ is as punishable as miss-classifying $10$ members from other classes. This is roughly equivalent to increasing the ratio of class $uc$ $10$ times in the training set using method (1).
As a concrete example, suppose ratio of three classes are $c_1=10%$, $c_2=60%$, and $c_3=30%$, thus, we can set $w_c_1=6$, $w_c_2=1$, and $w_c_3=2$, which implies $w_c_i times P(c_i)=w_c_jtimes P(c_j)$ for all class pairs $c_i$ and $c_j$.
$endgroup$
$begingroup$
Thank you for your response. "Both are equivalent. Copying the samples of a class 3 times is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set." - I think you are talking about weighing examples, not data augumentation. I wanted to know if the hybrid approach, i.e. augmentation + class weights, in case of such a large class imbalance is better than using only augumentation or class weights.
$endgroup$
– I.D.M
yesterday
1
$begingroup$
Data augmentation is not equivalent to changing class weights!!!! Oversampling is equivalent. Data augmentation can reveal more of the true data generating distribution
$endgroup$
– Bashar Haddad
yesterday
$begingroup$
@BasharHaddad you are right!
$endgroup$
– Esmailian
yesterday
1
$begingroup$
@Esmailian thanks for updating your answer. Your contribution to data science group is highly appreciated, but making sure that we are providing the right answers is extremely important. Thank you one more time for updating your answer
$endgroup$
– Bashar Haddad
18 hours ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "557"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f47423%2fcnn-imbalanced-classes-class-weights-vs-data-augmentation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Is this approach better than the mere
augmentation or just the use of class weights ?
Note that data augmentation is the process of changing the training samples (e.g. for images, flipping them, changing their luminosity, adding noise, etc.) and adding them back into the set. It is used for enriching the diversity of training samples, thus, in this aspect it cannot be replaced with class weighting. However, it is related to over-sampling since we can both enrich and increase the size of a class via data-augmentation. For now we are only focusing on the size increasing part, i.e. data over-sampling.
Data-oversampling and class weighting are equivalent. Copying the samples of a class 3X is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set.
Note that based on this equivalency we can mix and match. Increasing the size of a class 6X $equiv$ increasing the weight 6X $equiv$ increasing the size 3X and increasing the weight 2X.
Class weights vs over-sampling in more detail
I copied my answer from here, since the solutions are almost the same but questions are the reverse of each other.
This challenge can be tackled in two places:
Data: as you mentioned, this is done by artificially increasing the number of samples for under-represented class $uc$. This produces the same effect as data-sets that are naturally balanced,
Model: this is generally done by over-penalizing the miss-classification of $uc$ compared to other classes. One place for this modification is the loss function. A frequently used loss function in classification is cross entropy. It can be modified for this purpose as follows. Let $y_ik$ be $1$ if $k$ is the true class of data point $i$, and be $0$ otherwise, and $y'_ik in (0, 1]$ be the corresponding model estimation. The original cross-entropy can be written as:
$$H_y(y')=-sum_isum_k=1^Ky_iklog(y'_ik)$$
which can be weighted as
$$H_y(y')=-sum_isum_k=1^Kcolorbluew_ky_iklog(y'_ik)$$
For example, by setting $w_uc = 10$ and $w_k neq uc=1$, we are essentially telling the model that miss-classifying $1$ member from $uc$ is as punishable as miss-classifying $10$ members from other classes. This is roughly equivalent to increasing the ratio of class $uc$ $10$ times in the training set using method (1).
As a concrete example, suppose ratio of three classes are $c_1=10%$, $c_2=60%$, and $c_3=30%$, thus, we can set $w_c_1=6$, $w_c_2=1$, and $w_c_3=2$, which implies $w_c_i times P(c_i)=w_c_jtimes P(c_j)$ for all class pairs $c_i$ and $c_j$.
$endgroup$
$begingroup$
Thank you for your response. "Both are equivalent. Copying the samples of a class 3 times is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set." - I think you are talking about weighing examples, not data augumentation. I wanted to know if the hybrid approach, i.e. augmentation + class weights, in case of such a large class imbalance is better than using only augumentation or class weights.
$endgroup$
– I.D.M
yesterday
1
$begingroup$
Data augmentation is not equivalent to changing class weights!!!! Oversampling is equivalent. Data augmentation can reveal more of the true data generating distribution
$endgroup$
– Bashar Haddad
yesterday
$begingroup$
@BasharHaddad you are right!
$endgroup$
– Esmailian
yesterday
1
$begingroup$
@Esmailian thanks for updating your answer. Your contribution to data science group is highly appreciated, but making sure that we are providing the right answers is extremely important. Thank you one more time for updating your answer
$endgroup$
– Bashar Haddad
18 hours ago
add a comment |
$begingroup$
Is this approach better than the mere
augmentation or just the use of class weights ?
Note that data augmentation is the process of changing the training samples (e.g. for images, flipping them, changing their luminosity, adding noise, etc.) and adding them back into the set. It is used for enriching the diversity of training samples, thus, in this aspect it cannot be replaced with class weighting. However, it is related to over-sampling since we can both enrich and increase the size of a class via data-augmentation. For now we are only focusing on the size increasing part, i.e. data over-sampling.
Data-oversampling and class weighting are equivalent. Copying the samples of a class 3X is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set.
Note that based on this equivalency we can mix and match. Increasing the size of a class 6X $equiv$ increasing the weight 6X $equiv$ increasing the size 3X and increasing the weight 2X.
Class weights vs over-sampling in more detail
I copied my answer from here, since the solutions are almost the same but questions are the reverse of each other.
This challenge can be tackled in two places:
Data: as you mentioned, this is done by artificially increasing the number of samples for under-represented class $uc$. This produces the same effect as data-sets that are naturally balanced,
Model: this is generally done by over-penalizing the miss-classification of $uc$ compared to other classes. One place for this modification is the loss function. A frequently used loss function in classification is cross entropy. It can be modified for this purpose as follows. Let $y_ik$ be $1$ if $k$ is the true class of data point $i$, and be $0$ otherwise, and $y'_ik in (0, 1]$ be the corresponding model estimation. The original cross-entropy can be written as:
$$H_y(y')=-sum_isum_k=1^Ky_iklog(y'_ik)$$
which can be weighted as
$$H_y(y')=-sum_isum_k=1^Kcolorbluew_ky_iklog(y'_ik)$$
For example, by setting $w_uc = 10$ and $w_k neq uc=1$, we are essentially telling the model that miss-classifying $1$ member from $uc$ is as punishable as miss-classifying $10$ members from other classes. This is roughly equivalent to increasing the ratio of class $uc$ $10$ times in the training set using method (1).
As a concrete example, suppose ratio of three classes are $c_1=10%$, $c_2=60%$, and $c_3=30%$, thus, we can set $w_c_1=6$, $w_c_2=1$, and $w_c_3=2$, which implies $w_c_i times P(c_i)=w_c_jtimes P(c_j)$ for all class pairs $c_i$ and $c_j$.
$endgroup$
$begingroup$
Thank you for your response. "Both are equivalent. Copying the samples of a class 3 times is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set." - I think you are talking about weighing examples, not data augumentation. I wanted to know if the hybrid approach, i.e. augmentation + class weights, in case of such a large class imbalance is better than using only augumentation or class weights.
$endgroup$
– I.D.M
yesterday
1
$begingroup$
Data augmentation is not equivalent to changing class weights!!!! Oversampling is equivalent. Data augmentation can reveal more of the true data generating distribution
$endgroup$
– Bashar Haddad
yesterday
$begingroup$
@BasharHaddad you are right!
$endgroup$
– Esmailian
yesterday
1
$begingroup$
@Esmailian thanks for updating your answer. Your contribution to data science group is highly appreciated, but making sure that we are providing the right answers is extremely important. Thank you one more time for updating your answer
$endgroup$
– Bashar Haddad
18 hours ago
add a comment |
$begingroup$
Is this approach better than the mere
augmentation or just the use of class weights ?
Note that data augmentation is the process of changing the training samples (e.g. for images, flipping them, changing their luminosity, adding noise, etc.) and adding them back into the set. It is used for enriching the diversity of training samples, thus, in this aspect it cannot be replaced with class weighting. However, it is related to over-sampling since we can both enrich and increase the size of a class via data-augmentation. For now we are only focusing on the size increasing part, i.e. data over-sampling.
Data-oversampling and class weighting are equivalent. Copying the samples of a class 3X is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set.
Note that based on this equivalency we can mix and match. Increasing the size of a class 6X $equiv$ increasing the weight 6X $equiv$ increasing the size 3X and increasing the weight 2X.
Class weights vs over-sampling in more detail
I copied my answer from here, since the solutions are almost the same but questions are the reverse of each other.
This challenge can be tackled in two places:
Data: as you mentioned, this is done by artificially increasing the number of samples for under-represented class $uc$. This produces the same effect as data-sets that are naturally balanced,
Model: this is generally done by over-penalizing the miss-classification of $uc$ compared to other classes. One place for this modification is the loss function. A frequently used loss function in classification is cross entropy. It can be modified for this purpose as follows. Let $y_ik$ be $1$ if $k$ is the true class of data point $i$, and be $0$ otherwise, and $y'_ik in (0, 1]$ be the corresponding model estimation. The original cross-entropy can be written as:
$$H_y(y')=-sum_isum_k=1^Ky_iklog(y'_ik)$$
which can be weighted as
$$H_y(y')=-sum_isum_k=1^Kcolorbluew_ky_iklog(y'_ik)$$
For example, by setting $w_uc = 10$ and $w_k neq uc=1$, we are essentially telling the model that miss-classifying $1$ member from $uc$ is as punishable as miss-classifying $10$ members from other classes. This is roughly equivalent to increasing the ratio of class $uc$ $10$ times in the training set using method (1).
As a concrete example, suppose ratio of three classes are $c_1=10%$, $c_2=60%$, and $c_3=30%$, thus, we can set $w_c_1=6$, $w_c_2=1$, and $w_c_3=2$, which implies $w_c_i times P(c_i)=w_c_jtimes P(c_j)$ for all class pairs $c_i$ and $c_j$.
$endgroup$
Is this approach better than the mere
augmentation or just the use of class weights ?
Note that data augmentation is the process of changing the training samples (e.g. for images, flipping them, changing their luminosity, adding noise, etc.) and adding them back into the set. It is used for enriching the diversity of training samples, thus, in this aspect it cannot be replaced with class weighting. However, it is related to over-sampling since we can both enrich and increase the size of a class via data-augmentation. For now we are only focusing on the size increasing part, i.e. data over-sampling.
Data-oversampling and class weighting are equivalent. Copying the samples of a class 3X is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set.
Note that based on this equivalency we can mix and match. Increasing the size of a class 6X $equiv$ increasing the weight 6X $equiv$ increasing the size 3X and increasing the weight 2X.
Class weights vs over-sampling in more detail
I copied my answer from here, since the solutions are almost the same but questions are the reverse of each other.
This challenge can be tackled in two places:
Data: as you mentioned, this is done by artificially increasing the number of samples for under-represented class $uc$. This produces the same effect as data-sets that are naturally balanced,
Model: this is generally done by over-penalizing the miss-classification of $uc$ compared to other classes. One place for this modification is the loss function. A frequently used loss function in classification is cross entropy. It can be modified for this purpose as follows. Let $y_ik$ be $1$ if $k$ is the true class of data point $i$, and be $0$ otherwise, and $y'_ik in (0, 1]$ be the corresponding model estimation. The original cross-entropy can be written as:
$$H_y(y')=-sum_isum_k=1^Ky_iklog(y'_ik)$$
which can be weighted as
$$H_y(y')=-sum_isum_k=1^Kcolorbluew_ky_iklog(y'_ik)$$
For example, by setting $w_uc = 10$ and $w_k neq uc=1$, we are essentially telling the model that miss-classifying $1$ member from $uc$ is as punishable as miss-classifying $10$ members from other classes. This is roughly equivalent to increasing the ratio of class $uc$ $10$ times in the training set using method (1).
As a concrete example, suppose ratio of three classes are $c_1=10%$, $c_2=60%$, and $c_3=30%$, thus, we can set $w_c_1=6$, $w_c_2=1$, and $w_c_3=2$, which implies $w_c_i times P(c_i)=w_c_jtimes P(c_j)$ for all class pairs $c_i$ and $c_j$.
edited yesterday
answered yesterday
EsmailianEsmailian
1,346113
1,346113
$begingroup$
Thank you for your response. "Both are equivalent. Copying the samples of a class 3 times is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set." - I think you are talking about weighing examples, not data augumentation. I wanted to know if the hybrid approach, i.e. augmentation + class weights, in case of such a large class imbalance is better than using only augumentation or class weights.
$endgroup$
– I.D.M
yesterday
1
$begingroup$
Data augmentation is not equivalent to changing class weights!!!! Oversampling is equivalent. Data augmentation can reveal more of the true data generating distribution
$endgroup$
– Bashar Haddad
yesterday
$begingroup$
@BasharHaddad you are right!
$endgroup$
– Esmailian
yesterday
1
$begingroup$
@Esmailian thanks for updating your answer. Your contribution to data science group is highly appreciated, but making sure that we are providing the right answers is extremely important. Thank you one more time for updating your answer
$endgroup$
– Bashar Haddad
18 hours ago
add a comment |
$begingroup$
Thank you for your response. "Both are equivalent. Copying the samples of a class 3 times is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set." - I think you are talking about weighing examples, not data augumentation. I wanted to know if the hybrid approach, i.e. augmentation + class weights, in case of such a large class imbalance is better than using only augumentation or class weights.
$endgroup$
– I.D.M
yesterday
1
$begingroup$
Data augmentation is not equivalent to changing class weights!!!! Oversampling is equivalent. Data augmentation can reveal more of the true data generating distribution
$endgroup$
– Bashar Haddad
yesterday
$begingroup$
@BasharHaddad you are right!
$endgroup$
– Esmailian
yesterday
1
$begingroup$
@Esmailian thanks for updating your answer. Your contribution to data science group is highly appreciated, but making sure that we are providing the right answers is extremely important. Thank you one more time for updating your answer
$endgroup$
– Bashar Haddad
18 hours ago
$begingroup$
Thank you for your response. "Both are equivalent. Copying the samples of a class 3 times is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set." - I think you are talking about weighing examples, not data augumentation. I wanted to know if the hybrid approach, i.e. augmentation + class weights, in case of such a large class imbalance is better than using only augumentation or class weights.
$endgroup$
– I.D.M
yesterday
$begingroup$
Thank you for your response. "Both are equivalent. Copying the samples of a class 3 times is equivalent to assigning a 3X weight to the class. However, the weighting is better from storage and computational point of view since it avoids working with a larger data-set." - I think you are talking about weighing examples, not data augumentation. I wanted to know if the hybrid approach, i.e. augmentation + class weights, in case of such a large class imbalance is better than using only augumentation or class weights.
$endgroup$
– I.D.M
yesterday
1
1
$begingroup$
Data augmentation is not equivalent to changing class weights!!!! Oversampling is equivalent. Data augmentation can reveal more of the true data generating distribution
$endgroup$
– Bashar Haddad
yesterday
$begingroup$
Data augmentation is not equivalent to changing class weights!!!! Oversampling is equivalent. Data augmentation can reveal more of the true data generating distribution
$endgroup$
– Bashar Haddad
yesterday
$begingroup$
@BasharHaddad you are right!
$endgroup$
– Esmailian
yesterday
$begingroup$
@BasharHaddad you are right!
$endgroup$
– Esmailian
yesterday
1
1
$begingroup$
@Esmailian thanks for updating your answer. Your contribution to data science group is highly appreciated, but making sure that we are providing the right answers is extremely important. Thank you one more time for updating your answer
$endgroup$
– Bashar Haddad
18 hours ago
$begingroup$
@Esmailian thanks for updating your answer. Your contribution to data science group is highly appreciated, but making sure that we are providing the right answers is extremely important. Thank you one more time for updating your answer
$endgroup$
– Bashar Haddad
18 hours ago
add a comment |
Thanks for contributing an answer to Data Science Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f47423%2fcnn-imbalanced-classes-class-weights-vs-data-augmentation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown