heatingma commited on
Commit
f2852d6
1 Parent(s): 870f28b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -14
app.py CHANGED
@@ -16,26 +16,25 @@ FILEPATH = "data/cvrp/uniform/cvrp100_uniform.txt"
16
  def handle(
17
  hf_token: str
18
  ):
19
- solver = CVRPPyVRPSolver(time_limit=60)
20
- gen = CVRPDataGenerator(
21
- num_threads=8,
22
- nodes_num=100,
23
- min_capacity=50,
24
- max_capacity=50,
25
- solver=solver,
26
- train_samples_num=256,
27
- val_samples_num=0,
28
- test_samples_num=0
29
- )
30
  cur_iter = 0
31
- max_iter = 1000
32
-
33
  while(cur_iter < max_iter):
 
 
 
 
 
 
 
 
 
 
 
34
  gen.generate()
35
  filename = uuid.uuid4().hex[:9] + ".txt"
36
  push_file_to_hf(
37
  hf_token=hf_token,
38
- hf_repo_id="ML4CO/ML4VRPDataset",
39
  file_path=FILEPATH,
40
  path_in_repo=filename
41
  )
 
16
  def handle(
17
  hf_token: str
18
  ):
 
 
 
 
 
 
 
 
 
 
 
19
  cur_iter = 0
20
+ max_iter = 1000
 
21
  while(cur_iter < max_iter):
22
+ solver = CVRPPyVRPSolver(time_limit=60)
23
+ gen = CVRPDataGenerator(
24
+ num_threads=8,
25
+ nodes_num=100,
26
+ min_capacity=50,
27
+ max_capacity=50,
28
+ solver=solver,
29
+ train_samples_num=160,
30
+ val_samples_num=0,
31
+ test_samples_num=0
32
+ )
33
  gen.generate()
34
  filename = uuid.uuid4().hex[:9] + ".txt"
35
  push_file_to_hf(
36
  hf_token=hf_token,
37
+ hf_repo_id="ML4CO/ML4VRP",
38
  file_path=FILEPATH,
39
  path_in_repo=filename
40
  )