ClassificationField
in package
A classification field.
Table of Contents
Properties
- $confidence : float|mixed
- $value : string|mixed|null
Methods
- __construct() : mixed
- __toString() : string
Properties
$confidence
public
float|mixed
$confidence
The confidence score.
$value
public
string|mixed|null
$value
The classification value.
Methods
__construct()
public
__construct(array<string|int, mixed> $rawPrediction) : mixed
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
__toString()
public
__toString() : string
Return values
string —String representation.