msp.utils package
Submodules
msp.utils.configs module
The mps.utils.configs module defines load_yaml_flag function.
-
msp.utils.configs.load_yaml_flag(flag)[source]
msp.utils.metric module
The mps.utils.metric module defines tensorflow based metric to track the
model performance.
-
class msp.utils.metric.MeanMakespan(*args, **kwargs)[source]
Bases: keras.metrics.Metric
-
reset_states()[source]
Resets all of the metric state variables.
-
result()[source]
Computes and returns the metric value tensor.
-
update_state(makespan_train, makespan_baseline)[source]
Accumulates statistics for the metric
- Parameters
-
msp.utils.objective module
The mps.utils.objective module defines objective function
of MSP problem.
-
msp.utils.objective.compute_makespan(inputs, schedules)[source]
Compute makespan for MSP problem.
Module contents
The mps.utils module defines several utilities.
-
class msp.utils.MSPEnv(**kwargs)[source]
Bases: tensorflow.python.module.module.Module
-
build(input_shape)[source]
-
current_time_step()[source]
Returns the current TimeStep.
-
reset()[source]
Returns the current TimeStep after resetting the Environment.
-
step(actions)[source]
Applies the action and returns the new TimeStep.
-
class msp.utils.MSPState[source]
Bases: tensorflow.python.module.module.Module
-
build(input_shape)[source]
Create variables on first call.
-
property first_node
-
get_mask()[source]
-
get_step_count()[source]
-
property last_node
-
reset()[source]
-
update(inputs, selected_node)[source]