Interface Prediction.Builder

    • Method Detail

      • predictedLabel

        Prediction.Builder predictedLabel​(String predictedLabel)

        The prediction label for either a BINARY or MULTICLASS MLModel.

        Parameters:
        predictedLabel - The prediction label for either a BINARY or MULTICLASS MLModel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • predictedValue

        Prediction.Builder predictedValue​(Float predictedValue)

        The prediction value for REGRESSION MLModel.

        Parameters:
        predictedValue - The prediction value for REGRESSION MLModel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • predictedScores

        Prediction.Builder predictedScores​(Map<String,​Float> predictedScores)
        Sets the value of the PredictedScores property for this object.
        Parameters:
        predictedScores - The new value for the PredictedScores property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • detailsWithStrings

        Prediction.Builder detailsWithStrings​(Map<String,​String> details)
        Sets the value of the Details property for this object.
        Parameters:
        details - The new value for the Details property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • details

        Prediction.Builder details​(Map<DetailsAttributes,​String> details)
        Sets the value of the Details property for this object.
        Parameters:
        details - The new value for the Details property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.