Created
October 2, 2020 19:00
-
-
Save msaroufim/ce7926603f77551ebf46e07d64dcb777 to your computer and use it in GitHub Desktop.
This file contains 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
import argparse | |
def main(): | |
parser = argparse.ArgumentParser(description='Spektral Argument Parser') | |
parser.add_argument('--epochs', type=int, default=100, help= 'number of epochs') | |
parser.add_argument('--batch_size', type=int, default=256, help= 'batch size') | |
parser.add_argument('--amount', type=int, default=133000, help= 'number of molecules in dataset') | |
parser.add_argument('--learning_rate', type=float, default=1e-3, help='learning rate') | |
args = parser.parse_args() | |
return args | |
args = main() | |
epochs = args.epochs | |
batch_size = args.batch_size | |
amount = args.amount | |
learning_rate = args.learning_rate | |
print("Num epochs: {0} \n Batch Size: {1} \n Amount: {2} \n Learning Rate: {3} ".format(epochs,batch_size, amount, learning_rate)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment