content/test/gpu/gold_inexact_matching/local_minima_parameter_optimizer.py
def _ParametersAreGuaranteedToFail(self, parameters):
    """Checks whether the given ParameterSet is guaranteed to fail.

    A ParameterSet is guaranteed to fail if we have already tried and failed
    with a similar ParameterSet that was more permissive. Specifically, if we
    have tried and failed with a ParameterSet with all but one parameters
    matching, and the non-matching parameter was more permissive than the
    current one.

    Args:
      parameters: The ParameterSet instance to check.

    Returns:
      True if |parameters| is guaranteed to fail based on previously tried
      parameters, otherwise False.
    """
    permissive_max_diff = self._permissive_max_diff_map.get(
        parameters.delta_threshold, {}).get(parameters.edge_threshold, -1)
    if parameters.max_diff < permissive_max_diff:
      return True

    permissive_delta = self._permissive_delta_map.get(
        parameters.max_diff, {}).get(parameters.edge_threshold, -1)
    if parameters.delta_threshold < permissive_delta:
      return True

    permissive_edge = self._permissive_edge_map.get(
        parameters.max_diff, {}).get(parameters.delta_threshold, sys.maxsize)
    if parameters.edge_threshold > permissive_edge:
      return True

    return False
Checks whether the given ParameterSet is guaranteed to fail.

    A ParameterSet is guaranteed to fail if we have already tried and failed
    with a similar ParameterSet that was more permissive. Specifically, if we
    have tried and failed with a ParameterSet with all but one parameters
    matching, and the non-matching parameter was more permissive than the
    current one.

    Args:
      parameters: The ParameterSet instance to check.

    Returns:
      True if |parameters| is guaranteed to fail based on previously tried
      parameters, otherwise False.
    
Checks whether the given ParameterSet is guaranteed to fail.
A ParameterSet is guaranteed to fail if we have already tried and failed
with a similar ParameterSet that was more permissive. Specifically, if we
have tried and failed with a ParameterSet with all but one parameters
matching, and the non-matching parameter was more permissive than the
current one.
Checks whether the given ParameterSet is guaranteed to fail . A ParameterSet is guaranteed to fail if we have already tried and failed with a similar ParameterSet that was more permissive . Specifically if we have tried and failed with a ParameterSet with all but one parameters matching and the non - matching parameter was more permissive than the current one .
def _ParametersAreGuaranteedToFail(self, parameters):
    permissive_max_diff = self._permissive_max_diff_map.get(
        parameters.delta_threshold, {}).get(parameters.edge_threshold, -1)
    if parameters.max_diff < permissive_max_diff:
      return True
    permissive_delta = self._permissive_delta_map.get(
        parameters.max_diff, {}).get(parameters.edge_threshold, -1)
    if parameters.delta_threshold < permissive_delta:
      return True
    permissive_edge = self._permissive_edge_map.get(
        parameters.max_diff, {}).get(parameters.delta_threshold, sys.maxsize)
    if parameters.edge_threshold > permissive_edge:
      return True
    return False
def _ParametersAreGuaranteedToFail ( self , parameters ) : permissive_max_diff = self . _permissive_max_diff_map . get ( parameters . delta_threshold , { } ) . get ( parameters . edge_threshold , - 1 ) if parameters . max_diff < permissive_max_diff : return True permissive_delta = self . _permissive_delta_map . get ( parameters . max_diff , { } ) . get ( parameters . edge_threshold , - 1 ) if parameters . delta_threshold < permissive_delta : return True permissive_edge = self . _permissive_edge_map . get ( parameters . max_diff , { } ) . get ( parameters . delta_threshold , sys . maxsize ) if parameters . edge_threshold > permissive_edge : return True return False
Checks whether the given ParameterSet is guaranteed to fail.
Checks whether the given ParameterSet is guaranteed to fail .
"""Checks whether the given ParameterSet is guaranteed to fail.

    A ParameterSet is guaranteed to fail if we have already tried and failed
    with a similar ParameterSet that was more permissive. Specifically, if we
    have tried and failed with a ParameterSet with all but one parameters
    matching, and the non-matching parameter was more permissive than the
    current one.

    Args:
      parameters: The ParameterSet instance to check.

    Returns:
      True if |parameters| is guaranteed to fail based on previously tried
      parameters, otherwise False.
    """
True if |parameters| is guaranteed to fail based on previously tried
parameters, otherwise False.
True if |parameters| is guaranteed to fail based on previously tried parameters otherwise False .
self
parameters
The ParameterSet instance to check.
The ParameterSet instance to check .