Suggestion for model performance improvement for ML competition
$begingroup$
I am working on highly imbalanced dataset and trying to increase accuracy(metric: roc_auc) of my model which is hovering around 82-83%. This is part of an internal ML competition and people who are at the top have accuracy around 85-88%.
I am just wondering what else I can do to improve my model's accuracy. Any suggestion or tips would be appreciated.
Details of training dataset :
The training data shape is : (166573, 14)
https://i.stack.imgur.com/l0cHL.png
Distribution of features :
As you can see, only the first 4 columns go to different max values.
Rest of the columns have either 1 or 0 value (max: 1, min: 0)
https://i.stack.imgur.com/l0cHL.png
Scaling features :
X['scaled_distance']= sc.fit_transform(X['distance'].values.reshape(-1,1))
X['scaled_visit_count'] = sc.fit_transform(X['visit_count'].values.reshape(-1,1))
X['scaled_tier'] = sc.fit_transform(X['tier'].values.reshape(-1,1))
Null Handling :
train['tier'].fillna(round(train['tier'].mean(),2),inplace=True)
At last, I have tried different models (Xgboost, Random Forest with SMOTE, lightbgm etc..) I have got best results with lightbgm with some tuned parameters..
lgbm.fit(X_train,y_train)
LGBMClassifier(bagging_fraction=0.8, bagging_freq=15, boosting_type='gbdt',
class_weight=None, colsample_bytree=1.0, feature_fraction=0.5,
importance_type='split', is_unbalance=True, learning_rate=0.01,
max_depth=7, min_child_samples=20, min_child_weight=0.001,
min_split_gain=0.0, n_estimators=520, n_jobs=-1, num_leaves=40,
objective=None, random_state=10, reg_alpha=0.0, reg_lambda=0.0,
silent=True, subsample=1.0, subsample_for_bin=200000,
subsample_freq=0)
Please refer full code here :
https://github.com/PraveenKS30/ML/blob/master/Surge2019/Surge%20Pre%20Machine%20Learning.ipynb
I am not sure what else I can do to improve my accuracy.. Should I preprocess in different way ? Should I try neural network now?
Please suggest.
machine-learning classification xgboost class-imbalance
New contributor
$endgroup$
add a comment |
$begingroup$
I am working on highly imbalanced dataset and trying to increase accuracy(metric: roc_auc) of my model which is hovering around 82-83%. This is part of an internal ML competition and people who are at the top have accuracy around 85-88%.
I am just wondering what else I can do to improve my model's accuracy. Any suggestion or tips would be appreciated.
Details of training dataset :
The training data shape is : (166573, 14)
https://i.stack.imgur.com/l0cHL.png
Distribution of features :
As you can see, only the first 4 columns go to different max values.
Rest of the columns have either 1 or 0 value (max: 1, min: 0)
https://i.stack.imgur.com/l0cHL.png
Scaling features :
X['scaled_distance']= sc.fit_transform(X['distance'].values.reshape(-1,1))
X['scaled_visit_count'] = sc.fit_transform(X['visit_count'].values.reshape(-1,1))
X['scaled_tier'] = sc.fit_transform(X['tier'].values.reshape(-1,1))
Null Handling :
train['tier'].fillna(round(train['tier'].mean(),2),inplace=True)
At last, I have tried different models (Xgboost, Random Forest with SMOTE, lightbgm etc..) I have got best results with lightbgm with some tuned parameters..
lgbm.fit(X_train,y_train)
LGBMClassifier(bagging_fraction=0.8, bagging_freq=15, boosting_type='gbdt',
class_weight=None, colsample_bytree=1.0, feature_fraction=0.5,
importance_type='split', is_unbalance=True, learning_rate=0.01,
max_depth=7, min_child_samples=20, min_child_weight=0.001,
min_split_gain=0.0, n_estimators=520, n_jobs=-1, num_leaves=40,
objective=None, random_state=10, reg_alpha=0.0, reg_lambda=0.0,
silent=True, subsample=1.0, subsample_for_bin=200000,
subsample_freq=0)
Please refer full code here :
https://github.com/PraveenKS30/ML/blob/master/Surge2019/Surge%20Pre%20Machine%20Learning.ipynb
I am not sure what else I can do to improve my accuracy.. Should I preprocess in different way ? Should I try neural network now?
Please suggest.
machine-learning classification xgboost class-imbalance
New contributor
$endgroup$
add a comment |
$begingroup$
I am working on highly imbalanced dataset and trying to increase accuracy(metric: roc_auc) of my model which is hovering around 82-83%. This is part of an internal ML competition and people who are at the top have accuracy around 85-88%.
I am just wondering what else I can do to improve my model's accuracy. Any suggestion or tips would be appreciated.
Details of training dataset :
The training data shape is : (166573, 14)
https://i.stack.imgur.com/l0cHL.png
Distribution of features :
As you can see, only the first 4 columns go to different max values.
Rest of the columns have either 1 or 0 value (max: 1, min: 0)
https://i.stack.imgur.com/l0cHL.png
Scaling features :
X['scaled_distance']= sc.fit_transform(X['distance'].values.reshape(-1,1))
X['scaled_visit_count'] = sc.fit_transform(X['visit_count'].values.reshape(-1,1))
X['scaled_tier'] = sc.fit_transform(X['tier'].values.reshape(-1,1))
Null Handling :
train['tier'].fillna(round(train['tier'].mean(),2),inplace=True)
At last, I have tried different models (Xgboost, Random Forest with SMOTE, lightbgm etc..) I have got best results with lightbgm with some tuned parameters..
lgbm.fit(X_train,y_train)
LGBMClassifier(bagging_fraction=0.8, bagging_freq=15, boosting_type='gbdt',
class_weight=None, colsample_bytree=1.0, feature_fraction=0.5,
importance_type='split', is_unbalance=True, learning_rate=0.01,
max_depth=7, min_child_samples=20, min_child_weight=0.001,
min_split_gain=0.0, n_estimators=520, n_jobs=-1, num_leaves=40,
objective=None, random_state=10, reg_alpha=0.0, reg_lambda=0.0,
silent=True, subsample=1.0, subsample_for_bin=200000,
subsample_freq=0)
Please refer full code here :
https://github.com/PraveenKS30/ML/blob/master/Surge2019/Surge%20Pre%20Machine%20Learning.ipynb
I am not sure what else I can do to improve my accuracy.. Should I preprocess in different way ? Should I try neural network now?
Please suggest.
machine-learning classification xgboost class-imbalance
New contributor
$endgroup$
I am working on highly imbalanced dataset and trying to increase accuracy(metric: roc_auc) of my model which is hovering around 82-83%. This is part of an internal ML competition and people who are at the top have accuracy around 85-88%.
I am just wondering what else I can do to improve my model's accuracy. Any suggestion or tips would be appreciated.
Details of training dataset :
The training data shape is : (166573, 14)
https://i.stack.imgur.com/l0cHL.png
Distribution of features :
As you can see, only the first 4 columns go to different max values.
Rest of the columns have either 1 or 0 value (max: 1, min: 0)
https://i.stack.imgur.com/l0cHL.png
Scaling features :
X['scaled_distance']= sc.fit_transform(X['distance'].values.reshape(-1,1))
X['scaled_visit_count'] = sc.fit_transform(X['visit_count'].values.reshape(-1,1))
X['scaled_tier'] = sc.fit_transform(X['tier'].values.reshape(-1,1))
Null Handling :
train['tier'].fillna(round(train['tier'].mean(),2),inplace=True)
At last, I have tried different models (Xgboost, Random Forest with SMOTE, lightbgm etc..) I have got best results with lightbgm with some tuned parameters..
lgbm.fit(X_train,y_train)
LGBMClassifier(bagging_fraction=0.8, bagging_freq=15, boosting_type='gbdt',
class_weight=None, colsample_bytree=1.0, feature_fraction=0.5,
importance_type='split', is_unbalance=True, learning_rate=0.01,
max_depth=7, min_child_samples=20, min_child_weight=0.001,
min_split_gain=0.0, n_estimators=520, n_jobs=-1, num_leaves=40,
objective=None, random_state=10, reg_alpha=0.0, reg_lambda=0.0,
silent=True, subsample=1.0, subsample_for_bin=200000,
subsample_freq=0)
Please refer full code here :
https://github.com/PraveenKS30/ML/blob/master/Surge2019/Surge%20Pre%20Machine%20Learning.ipynb
I am not sure what else I can do to improve my accuracy.. Should I preprocess in different way ? Should I try neural network now?
Please suggest.
machine-learning classification xgboost class-imbalance
machine-learning classification xgboost class-imbalance
New contributor
New contributor
New contributor
asked 1 min ago
PraveenksPraveenks
1062
1062
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
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
});
}
});
Praveenks is a new contributor. Be nice, and check out our Code of Conduct.
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%2f50955%2fsuggestion-for-model-performance-improvement-for-ml-competition%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Praveenks is a new contributor. Be nice, and check out our Code of Conduct.
Praveenks is a new contributor. Be nice, and check out our Code of Conduct.
Praveenks is a new contributor. Be nice, and check out our Code of Conduct.
Praveenks is a new contributor. Be nice, and check out our Code of Conduct.
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%2f50955%2fsuggestion-for-model-performance-improvement-for-ml-competition%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