Created
February 12, 2020 00:10
-
-
Save shashankprasanna/1b2044ac8c89bfd90f414be6af585b77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parser = argparse.ArgumentParser() | |
# Hyper-parameters | |
parser.add_argument('--n_estimators', type=int, default=20) | |
parser.add_argument('--max_depth', type=int, default=16) | |
parser.add_argument('--n_bins', type=int, default=8) | |
parser.add_argument('--split_criterion', type=int, default=0) | |
parser.add_argument('--split_algo', type=int, default=0) | |
parser.add_argument('--bootstrap', type=bool, default=True) | |
parser.add_argument('--bootstrap_features', type=bool, default=False) | |
parser.add_argument('--max_leaves', type=int, default=-1) | |
parser.add_argument('--max_features', type=float, default=0.2) | |
# SageMaker parameters | |
parser.add_argument('--model_dir', type=str) | |
parser.add_argument('--model_output_dir', type=str, default='/opt/ml/output/') | |
parser.add_argument('--data_dir', type=str, default='/opt/ml/input/data/dataset/') | |
args = parser.parse_args() | |
main(args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment