Represents a ModelEvaluation.
Package
@google-cloud/automl!Constructors
(constructor)(properties)
constructor(properties?: google.cloud.automl.v1beta1.IModelEvaluation);
Constructs a new ModelEvaluation.
Name | Description |
properties |
IModelEvaluation
Properties to set |
Properties
annotationSpecId
public annotationSpecId: string;
ModelEvaluation annotationSpecId.
Type | Description |
string |
classificationEvaluationMetrics
public classificationEvaluationMetrics?: (google.cloud.automl.v1beta1.IClassificationEvaluationMetrics|null);
ModelEvaluation classificationEvaluationMetrics.
Type | Description |
(google.cloud.automl.v1beta1.IClassificationEvaluationMetrics|null) |
createTime
public createTime?: (google.protobuf.ITimestamp|null);
ModelEvaluation createTime.
Type | Description |
(google.protobuf.ITimestamp|null) |
displayName
public displayName: string;
ModelEvaluation displayName.
Type | Description |
string |
evaluatedExampleCount
public evaluatedExampleCount: number;
ModelEvaluation evaluatedExampleCount.
Type | Description |
number |
imageObjectDetectionEvaluationMetrics
public imageObjectDetectionEvaluationMetrics?: (google.cloud.automl.v1beta1.IImageObjectDetectionEvaluationMetrics|null);
ModelEvaluation imageObjectDetectionEvaluationMetrics.
Type | Description |
(google.cloud.automl.v1beta1.IImageObjectDetectionEvaluationMetrics|null) |
metrics
public metrics?: ("classificationEvaluationMetrics"|"regressionEvaluationMetrics"|"translationEvaluationMetrics"|"imageObjectDetectionEvaluationMetrics"|"videoObjectTrackingEvaluationMetrics"|"textSentimentEvaluationMetrics"|"textExtractionEvaluationMetrics");
ModelEvaluation metrics.
Type | Description |
("classificationEvaluationMetrics"|"regressionEvaluationMetrics"|"translationEvaluationMetrics"|"imageObjectDetectionEvaluationMetrics"|"videoObjectTrackingEvaluationMetrics"|"textSentimentEvaluationMetrics"|"textExtractionEvaluationMetrics") |
name
public name: string;
ModelEvaluation name.
Type | Description |
string |
regressionEvaluationMetrics
public regressionEvaluationMetrics?: (google.cloud.automl.v1beta1.IRegressionEvaluationMetrics|null);
ModelEvaluation regressionEvaluationMetrics.
Type | Description |
(google.cloud.automl.v1beta1.IRegressionEvaluationMetrics|null) |
textExtractionEvaluationMetrics
public textExtractionEvaluationMetrics?: (google.cloud.automl.v1beta1.ITextExtractionEvaluationMetrics|null);
ModelEvaluation textExtractionEvaluationMetrics.
Type | Description |
(google.cloud.automl.v1beta1.ITextExtractionEvaluationMetrics|null) |
textSentimentEvaluationMetrics
public textSentimentEvaluationMetrics?: (google.cloud.automl.v1beta1.ITextSentimentEvaluationMetrics|null);
ModelEvaluation textSentimentEvaluationMetrics.
Type | Description |
(google.cloud.automl.v1beta1.ITextSentimentEvaluationMetrics|null) |
translationEvaluationMetrics
public translationEvaluationMetrics?: (google.cloud.automl.v1beta1.ITranslationEvaluationMetrics|null);
ModelEvaluation translationEvaluationMetrics.
Type | Description |
(google.cloud.automl.v1beta1.ITranslationEvaluationMetrics|null) |
videoObjectTrackingEvaluationMetrics
public videoObjectTrackingEvaluationMetrics?: (google.cloud.automl.v1beta1.IVideoObjectTrackingEvaluationMetrics|null);
ModelEvaluation videoObjectTrackingEvaluationMetrics.
Type | Description |
(google.cloud.automl.v1beta1.IVideoObjectTrackingEvaluationMetrics|null) |
Methods
create(properties)
public static create(properties?: google.cloud.automl.v1beta1.IModelEvaluation): google.cloud.automl.v1beta1.ModelEvaluation;
Creates a new ModelEvaluation instance using the specified properties.
Name | Description |
properties |
IModelEvaluation
Properties to set |
Type | Description |
google.cloud.automl.v1beta1.ModelEvaluation | ModelEvaluation instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.automl.v1beta1.ModelEvaluation;
Decodes a ModelEvaluation message from the specified reader or buffer.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Type | Description |
google.cloud.automl.v1beta1.ModelEvaluation | ModelEvaluation |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.automl.v1beta1.ModelEvaluation;
Decodes a ModelEvaluation message from the specified reader or buffer, length delimited.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.cloud.automl.v1beta1.ModelEvaluation | ModelEvaluation |
encode(message, writer)
public static encode(message: google.cloud.automl.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified ModelEvaluation message. Does not implicitly messages.
Name | Description |
message |
IModelEvaluation
ModelEvaluation message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.automl.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified ModelEvaluation message, length delimited. Does not implicitly messages.
Name | Description |
message |
IModelEvaluation
ModelEvaluation message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.automl.v1beta1.ModelEvaluation;
Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.cloud.automl.v1beta1.ModelEvaluation | ModelEvaluation |
toJSON()
public toJSON(): { [k: string]: any };
Converts this ModelEvaluation to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.automl.v1beta1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.automl.v1beta1.ModelEvaluation
ModelEvaluation |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a ModelEvaluation message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|