Skip to content

Commit

Permalink
Modify argparse arguments of train_acd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mjevans26 committed Jan 3, 2021
1 parent a997f37 commit 571c7e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions azure/train_acd.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
parser.add_argument('-e', '--epochs', type = int, default = 10, help = 'Number of epochs to train the model for')
args = parser.parse_args()

LR = args.lr
WEIGHT = args.w
LR = args.learning_rate
WEIGHT = args.weight
BANDS = ['B2', 'B3', 'B3', 'B8', 'B2_1', 'B3_1', 'B4_1', 'B8_1']
OPTIMIZER = tf.keras.optimizers.Adam(learning_rate=LR, beta_1=0.9, beta_2=0.999)
LOSS = model.weighted_bce(WEIGHT)
Expand Down Expand Up @@ -76,7 +76,7 @@
# train the model
m.train(
x = training,
epochs = args.e,
epochs = args.epochs,
validation_data = evaluation,
callbacks = [checkpoint, tensorboard]
)
Expand Down

0 comments on commit 571c7e7

Please sign in to comment.