예제 #1
0
    def create(self) -> Comparison:
        graph3d_values = self._graph3d_values

        grid_view_parameters = self._grid_view_parameters

        return Comparison(
            environment_parameters=self._environment_parameters,
            comparison_settings=Settings(),
            settings_list=[
                Settings(algorithm_parameters=common.AlgorithmParameters(
                    algorithm_type=common.AlgorithmType.DP_VALUE_ITERATION_V,
                    verbose=True,
                    theta=0.1  # accuracy of policy_evaluation
                )),
            ],
            graph3d_values=graph3d_values,
            grid_view_parameters=grid_view_parameters,
        )
    def create(self) -> Comparison:
        graph3d_values = self._graph3d_values

        grid_view_parameters = self._grid_view_parameters

        return Comparison(
            environment_parameters=self._environment_parameters,
            comparison_settings=Settings(),
            settings_list=[
                Settings(
                    algorithm_parameters=common.AlgorithmParameters(
                        algorithm_type=common.AlgorithmType.DP_POLICY_ITERATION_Q,
                        verbose=True,
                        derive_v_from_q_as_final_step=True,
                        theta=0.1  # accuracy of policy_evaluation
                    ),
                ),
            ],
            graph3d_values=graph3d_values,
            grid_view_parameters=self._grid_view_parameters,
        )