Interface RejectRule.Builder

    • Method Detail

      • rule

        RejectRule.Builder rule​(String rule)

        Specifies whether you want to reject the top prediction for all targets or none.

        Parameters:
        rule - Specifies whether you want to reject the top prediction for all targets or none.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RejectRuleBehavior, RejectRuleBehavior
      • rule

        RejectRule.Builder rule​(RejectRuleBehavior rule)

        Specifies whether you want to reject the top prediction for all targets or none.

        Parameters:
        rule - Specifies whether you want to reject the top prediction for all targets or none.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RejectRuleBehavior, RejectRuleBehavior
      • threshold

        RejectRule.Builder threshold​(Float threshold)

        The confidence score that specifies the condition at which a prediction can be rejected.

        Parameters:
        threshold - The confidence score that specifies the condition at which a prediction can be rejected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.