Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Distributes the entries (images) in a training dataset across the
training dataset and the test dataset for a project.
DistributeDatasetEntries
moves 20% of the training dataset images to
the test dataset. An entry is a JSON Line that describes an image.
You supply the Amazon Resource Names (ARN) of a project's training dataset and test dataset. The training dataset must contain the images that you want to split. The test dataset must be empty. The datasets must belong to the same project. To create training and test datasets for a project, call CreateDataset.
Distributing a dataset takes a while to complete. To check the status
call DescribeDataset
. The operation is complete when the Status
field for the training dataset and the test dataset is
UPDATE_COMPLETE
. If the dataset split fails, the value of Status
is
UPDATE_FAILED
.
This operation requires permissions to perform the
rekognition:DistributeDatasetEntries
action.
Synopsis
- data DistributeDatasetEntries = DistributeDatasetEntries' {}
- newDistributeDatasetEntries :: NonEmpty DistributeDataset -> DistributeDatasetEntries
- distributeDatasetEntries_datasets :: Lens' DistributeDatasetEntries (NonEmpty DistributeDataset)
- data DistributeDatasetEntriesResponse = DistributeDatasetEntriesResponse' {
- httpStatus :: Int
- newDistributeDatasetEntriesResponse :: Int -> DistributeDatasetEntriesResponse
- distributeDatasetEntriesResponse_httpStatus :: Lens' DistributeDatasetEntriesResponse Int
Creating a Request
data DistributeDatasetEntries Source #
See: newDistributeDatasetEntries
smart constructor.
DistributeDatasetEntries' | |
|
Instances
newDistributeDatasetEntries Source #
Create a value of DistributeDatasetEntries
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DistributeDatasetEntries
, distributeDatasetEntries_datasets
- The ARNS for the training dataset and test dataset that you want to use.
The datasets must belong to the same project. The test dataset must be
empty.
Request Lenses
distributeDatasetEntries_datasets :: Lens' DistributeDatasetEntries (NonEmpty DistributeDataset) Source #
The ARNS for the training dataset and test dataset that you want to use. The datasets must belong to the same project. The test dataset must be empty.
Destructuring the Response
data DistributeDatasetEntriesResponse Source #
See: newDistributeDatasetEntriesResponse
smart constructor.
DistributeDatasetEntriesResponse' | |
|
Instances
Generic DistributeDatasetEntriesResponse Source # | |
Read DistributeDatasetEntriesResponse Source # | |
Show DistributeDatasetEntriesResponse Source # | |
NFData DistributeDatasetEntriesResponse Source # | |
Defined in Amazonka.Rekognition.DistributeDatasetEntries rnf :: DistributeDatasetEntriesResponse -> () # | |
Eq DistributeDatasetEntriesResponse Source # | |
type Rep DistributeDatasetEntriesResponse Source # | |
Defined in Amazonka.Rekognition.DistributeDatasetEntries type Rep DistributeDatasetEntriesResponse = D1 ('MetaData "DistributeDatasetEntriesResponse" "Amazonka.Rekognition.DistributeDatasetEntries" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "DistributeDatasetEntriesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDistributeDatasetEntriesResponse Source #
Create a value of DistributeDatasetEntriesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DistributeDatasetEntriesResponse'
, distributeDatasetEntriesResponse_httpStatus
- The response's http status code.
Response Lenses
distributeDatasetEntriesResponse_httpStatus :: Lens' DistributeDatasetEntriesResponse Int Source #
The response's http status code.