Skip to content

Commit

Permalink
ML4CO-Kit 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
heatingma committed Sep 3, 2024
1 parent 703ddc2 commit b89a387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ml4co_kit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
from .learning.utils import points_to_distmat, sparse_points


__version__ = "0.1.0"
__version__ = "0.1.1"
__author__ = "SJTU-ReThinkLab"
4 changes: 2 additions & 2 deletions tests/test_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_tsp_greedy_decoder():
solver.from_txt("tests/algorithm_test/tsp50.txt")
points = solver.points
heatmap = np.load("tests/algorithm_test/tsp50_heatmap.npy", allow_pickle=True)
tours = tsp_greedy_decoder(heatmap=heatmap, points=points)
tours = tsp_greedy_decoder(heatmap=heatmap)
solver.read_tours(tours)
_, _, gap_avg, _ = solver.evaluate(calculate_gap=True)
print(f"Greedy Decoder Gap: {gap_avg}")
Expand Down Expand Up @@ -63,7 +63,7 @@ def test_tsp_mcts_local_search():
solver.from_txt("tests/algorithm_test/tsp50.txt")
points = solver.points
heatmap = np.load("tests/algorithm_test/tsp50_heatmap.npy", allow_pickle=True)
greedy_tours = tsp_greedy_decoder(heatmap=heatmap, points=points)
greedy_tours = tsp_greedy_decoder(heatmap=heatmap)
tours = tsp_mcts_local_search(
init_tours=greedy_tours, heatmap=heatmap, points=points, time_limit=0.1
)
Expand Down

0 comments on commit b89a387

Please sign in to comment.