Store ML training data in a separate HDF5 file

This commit is contained in:
2021-08-31 14:15:22 -05:00
parent 7750e16862
commit d87476631a
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ using Cbc
solver = LearningSolver(Cbc.Optimizer)
solve!(solver, instance)
h5 = Hdf5Sample(filename)
h5 = Hdf5Sample("$filename.h5")
@test h5.get_scalar("mip_wallclock_time") > 0
end

View File

@@ -56,7 +56,7 @@ end
instance = FileInstance(filename, build_model)
solver = LearningSolver(Cbc.Optimizer)
solve!(solver, instance)
h5 = MIPLearn.Hdf5Sample(filename)
h5 = MIPLearn.Hdf5Sample("$filename.h5")
@test h5.get_array("mip_var_values") == [1.0, 0.0]
end
end