create_model
async
¶
create_model(
model_name: ModelName,
dataset_name: DatasetIdentifier,
client_token: IdempotenceToken,
*,
config_overrides: Optional[AsyncLookoutEquipmentClientConfig] = None,
dataset_schema: Optional[DatasetSchema] = None,
labels_input_configuration: Optional[LabelsInputConfiguration] = None,
training_data_start_time: Optional[Timestamp] = None,
training_data_end_time: Optional[Timestamp] = None,
evaluation_data_start_time: Optional[Timestamp] = None,
evaluation_data_end_time: Optional[Timestamp] = None,
role_arn: Optional[IamRoleArn] = None,
data_pre_processing_configuration: Optional[DataPreProcessingConfiguration] = None,
server_side_kms_key_id: Optional[NameOrArn] = None,
tags: Optional[TagList] = None,
off_condition: Optional[OffCondition] = None,
model_diagnostics_output_configuration: Optional[
ModelDiagnosticsOutputConfiguration
] = None,
) -> CreateModelResponse
Creates a machine learning model for data inference.
A machine-learning (ML) model is a mathematical model that finds patterns in your data. In Amazon Lookout for Equipment, the model learns the patterns of normal behavior and detects abnormal behavior that could be potential equipment failure (or maintenance events). The models are made by analyzing normal data and abnormalities in machine behavior that have already occurred.
Your model is trained using a portion of the data from your dataset and uses that data to learn patterns of normal behavior and abnormal patterns that lead to equipment failure. Another portion of the data is used to evaluate the model's accuracy.
Parameters:
-
model_name(ModelName) –The name for the machine learning model to be created.
-
dataset_name(DatasetIdentifier) –The name of the dataset for the machine learning model being created.
-
dataset_schema(Optional[DatasetSchema], default:None) –The data schema for the machine learning model being created.
-
labels_input_configuration(Optional[LabelsInputConfiguration], default:None) –The input configuration for the labels being used for the machine learning model that's being created.
-
client_token(IdempotenceToken) –A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.
-
training_data_start_time(Optional[Timestamp], default:None) –Indicates the time reference in the dataset that should be used to begin the subset of training data for the machine learning model.
-
training_data_end_time(Optional[Timestamp], default:None) –Indicates the time reference in the dataset that should be used to end the subset of training data for the machine learning model.
-
evaluation_data_start_time(Optional[Timestamp], default:None) –Indicates the time reference in the dataset that should be used to begin the subset of evaluation data for the machine learning model.
-
evaluation_data_end_time(Optional[Timestamp], default:None) –Indicates the time reference in the dataset that should be used to end the subset of evaluation data for the machine learning model.
-
role_arn(Optional[IamRoleArn], default:None) –The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the machine learning model.
-
data_pre_processing_configuration(Optional[DataPreProcessingConfiguration], default:None) –The configuration is the
TargetSamplingRate, which is the sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, theTargetSamplingRateis 1 minute.When providing a value for the
TargetSamplingRate, you must attach the prefix "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is PT15M, and the value for a 1 hour rate is PT1H -
server_side_kms_key_id(Optional[NameOrArn], default:None) –Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment.
-
tags(Optional[TagList], default:None) –Any tags associated with the machine learning model being created.
-
off_condition(Optional[OffCondition], default:None) –Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout for Equipment will not use data from this asset for training, evaluation, or inference.
-
model_diagnostics_output_configuration(Optional[ModelDiagnosticsOutputConfiguration], default:None) –The Amazon S3 location where you want Amazon Lookout for Equipment to save the pointwise model diagnostics. You must also specify the
RoleArnrequest parameter.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have access to the resource.
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
InternalServerException–Processing of the request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource requested could not be found. Verify the resource ID and retry your request.
-
ServiceQuotaExceededException–Resource limitations have been exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lookoutequipment/_services/async_lookout_equipment.py
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 | |