Skip to content

Commit

Permalink
Update main.py (#7)
Browse files Browse the repository at this point in the history
Default to 2D simulation.
  • Loading branch information
lonniechien authored Jul 5, 2023
1 parent 2746417 commit 8acd19a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_args():
parser.add_argument('--epochs', type=int, action='store', dest='epochs',
help='number of epochs', default = 1)
parser.add_argument('--2d', action='store_true', dest='two_d',
help='simulation in 2d as opposed to 3d')
help='simulation in 2d as opposed to 3d', default = True)
parser.add_argument('--lr', type=float, action='store', dest='learning_rate',
help='learning rate', default = 1e-3)
parser.add_argument('-j', type=float, action='store', dest='jitter',
Expand Down Expand Up @@ -155,6 +155,7 @@ def partition_dataset(args, world_size):
# Training data is a list of coordinates
training_data, _ = create_data(args.training_data_x_start, args.training_data_x_end,
args.training_data_x_step, args.two_d)

training_partition = DataPartitioner(training_data, partition_sizes, shuffle=True)


Expand Down

0 comments on commit 8acd19a

Please sign in to comment.