Share via


TrainingExamplesInput(String, String, Byte[], String) Constructor

Definition

Creates a new TrainingExamplesInput.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;[BLjava/lang/String;)V", "", ApiSince=36)]
public TrainingExamplesInput(string populationName, string taskName, byte[]? resumptionToken, string? collectionName);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;[BLjava/lang/String;)V", "", ApiSince=36)>]
new Android.AdServices.OnDevicePersonalization.TrainingExamplesInput : string * string * byte[] * string -> Android.AdServices.OnDevicePersonalization.TrainingExamplesInput

Parameters

populationName
String

The name of the federated compute population. It should match the population name in FederatedComputeInput#getPopulationName.

taskName
String

The name of the task within the population. It should match task plan configured at remote federated compute server. One population may have multiple tasks. The task name can be used to uniquely identify the job.

resumptionToken
Byte[]

Token used to support the resumption of training. If client app wants to use resumption token to track what examples are already used in previous federated compute jobs, it need set TrainingExampleRecord.Builder#setResumptionToken, OnDevicePersonalization will store it and pass it here for generating new training examples.

collectionName
String

The data collection name to use to create training examples.

Attributes

Remarks

Creates a new TrainingExamplesInput.

Java documentation for android.adservices.ondevicepersonalization.TrainingExamplesInput.TrainingExamplesInput(java.lang.String, java.lang.String, byte[], java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to