Skip to content

Instantly share code, notes, and snippets.

@gvyshnya
Last active August 20, 2017 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gvyshnya/918e94b06ebf222f6bb56ed26a5f44ee to your computer and use it in GitHub Desktop.
Save gvyshnya/918e94b06ebf222f6bb56ed26a5f44ee to your computer and use it in GitHub Desktop.
Wine sales prediction: an R configuration file
# Competition: https://inclass.kaggle.com/c/pred-411-2016-04-u3-wine/
# This is a configuration file to the entire solution
# LR.R specific settings
cfg_run_LR <- 1 # if set to 0, LR model will not fit, and its prediction will not be calculated in the batch mode
# GMB.R specific settings
cfg_run_GBM <- 1 # if set to 0, GBM model will not fit, and its prediction will not be calculated in the batch mode
# xgboost.R specific settings
cfg_run_xgboost <- 1 # if set to 0, xgboost model will not fit, and its prediction will not be calculated in the batch mode
# ensemble.R specific settings
cfg_run_ensemble <- 1 # if set to 0, the ensemble will not predict, and ensemble prediction will not be created
# ensemble components
cfg_model_predictions <- c("data/submission_LR.csv", "data/submission_GBM.csv", "data/submission_XGBOOST.csv")
# element weights mapped to the cfg_model_predictions elements above
cfg_model_weights <- c(1,1,1) # weights of predictions of the models in the ensemble
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment