/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

The parameters to configure the find matches transform.

See * Also:

AWS * API Reference

*/ class FindMatchesParameters { public: AWS_GLUE_API FindMatchesParameters(); AWS_GLUE_API FindMatchesParameters(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API FindMatchesParameters& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of a column that uniquely identifies rows in the source table. Used * to help identify matching records.

*/ inline const Aws::String& GetPrimaryKeyColumnName() const{ return m_primaryKeyColumnName; } /** *

The name of a column that uniquely identifies rows in the source table. Used * to help identify matching records.

*/ inline bool PrimaryKeyColumnNameHasBeenSet() const { return m_primaryKeyColumnNameHasBeenSet; } /** *

The name of a column that uniquely identifies rows in the source table. Used * to help identify matching records.

*/ inline void SetPrimaryKeyColumnName(const Aws::String& value) { m_primaryKeyColumnNameHasBeenSet = true; m_primaryKeyColumnName = value; } /** *

The name of a column that uniquely identifies rows in the source table. Used * to help identify matching records.

*/ inline void SetPrimaryKeyColumnName(Aws::String&& value) { m_primaryKeyColumnNameHasBeenSet = true; m_primaryKeyColumnName = std::move(value); } /** *

The name of a column that uniquely identifies rows in the source table. Used * to help identify matching records.

*/ inline void SetPrimaryKeyColumnName(const char* value) { m_primaryKeyColumnNameHasBeenSet = true; m_primaryKeyColumnName.assign(value); } /** *

The name of a column that uniquely identifies rows in the source table. Used * to help identify matching records.

*/ inline FindMatchesParameters& WithPrimaryKeyColumnName(const Aws::String& value) { SetPrimaryKeyColumnName(value); return *this;} /** *

The name of a column that uniquely identifies rows in the source table. Used * to help identify matching records.

*/ inline FindMatchesParameters& WithPrimaryKeyColumnName(Aws::String&& value) { SetPrimaryKeyColumnName(std::move(value)); return *this;} /** *

The name of a column that uniquely identifies rows in the source table. Used * to help identify matching records.

*/ inline FindMatchesParameters& WithPrimaryKeyColumnName(const char* value) { SetPrimaryKeyColumnName(value); return *this;} /** *

The value selected when tuning your transform for a balance between precision * and recall. A value of 0.5 means no preference; a value of 1.0 means a bias * purely for precision, and a value of 0.0 means a bias for recall. Because this * is a tradeoff, choosing values close to 1.0 means very low recall, and choosing * values close to 0.0 results in very low precision.

The precision metric * indicates how often your model is correct when it predicts a match.

The * recall metric indicates that for an actual match, how often your model predicts * the match.

*/ inline double GetPrecisionRecallTradeoff() const{ return m_precisionRecallTradeoff; } /** *

The value selected when tuning your transform for a balance between precision * and recall. A value of 0.5 means no preference; a value of 1.0 means a bias * purely for precision, and a value of 0.0 means a bias for recall. Because this * is a tradeoff, choosing values close to 1.0 means very low recall, and choosing * values close to 0.0 results in very low precision.

The precision metric * indicates how often your model is correct when it predicts a match.

The * recall metric indicates that for an actual match, how often your model predicts * the match.

*/ inline bool PrecisionRecallTradeoffHasBeenSet() const { return m_precisionRecallTradeoffHasBeenSet; } /** *

The value selected when tuning your transform for a balance between precision * and recall. A value of 0.5 means no preference; a value of 1.0 means a bias * purely for precision, and a value of 0.0 means a bias for recall. Because this * is a tradeoff, choosing values close to 1.0 means very low recall, and choosing * values close to 0.0 results in very low precision.

The precision metric * indicates how often your model is correct when it predicts a match.

The * recall metric indicates that for an actual match, how often your model predicts * the match.

*/ inline void SetPrecisionRecallTradeoff(double value) { m_precisionRecallTradeoffHasBeenSet = true; m_precisionRecallTradeoff = value; } /** *

The value selected when tuning your transform for a balance between precision * and recall. A value of 0.5 means no preference; a value of 1.0 means a bias * purely for precision, and a value of 0.0 means a bias for recall. Because this * is a tradeoff, choosing values close to 1.0 means very low recall, and choosing * values close to 0.0 results in very low precision.

The precision metric * indicates how often your model is correct when it predicts a match.

The * recall metric indicates that for an actual match, how often your model predicts * the match.

*/ inline FindMatchesParameters& WithPrecisionRecallTradeoff(double value) { SetPrecisionRecallTradeoff(value); return *this;} /** *

The value that is selected when tuning your transform for a balance between * accuracy and cost. A value of 0.5 means that the system balances accuracy and * cost concerns. A value of 1.0 means a bias purely for accuracy, which typically * results in a higher cost, sometimes substantially higher. A value of 0.0 means a * bias purely for cost, which results in a less accurate FindMatches * transform, sometimes with unacceptable accuracy.

Accuracy measures how * well the transform finds true positives and true negatives. Increasing accuracy * requires more machine resources and cost. But it also results in increased * recall.

Cost measures how many compute resources, and thus money, are * consumed to run the transform.

*/ inline double GetAccuracyCostTradeoff() const{ return m_accuracyCostTradeoff; } /** *

The value that is selected when tuning your transform for a balance between * accuracy and cost. A value of 0.5 means that the system balances accuracy and * cost concerns. A value of 1.0 means a bias purely for accuracy, which typically * results in a higher cost, sometimes substantially higher. A value of 0.0 means a * bias purely for cost, which results in a less accurate FindMatches * transform, sometimes with unacceptable accuracy.

Accuracy measures how * well the transform finds true positives and true negatives. Increasing accuracy * requires more machine resources and cost. But it also results in increased * recall.

Cost measures how many compute resources, and thus money, are * consumed to run the transform.

*/ inline bool AccuracyCostTradeoffHasBeenSet() const { return m_accuracyCostTradeoffHasBeenSet; } /** *

The value that is selected when tuning your transform for a balance between * accuracy and cost. A value of 0.5 means that the system balances accuracy and * cost concerns. A value of 1.0 means a bias purely for accuracy, which typically * results in a higher cost, sometimes substantially higher. A value of 0.0 means a * bias purely for cost, which results in a less accurate FindMatches * transform, sometimes with unacceptable accuracy.

Accuracy measures how * well the transform finds true positives and true negatives. Increasing accuracy * requires more machine resources and cost. But it also results in increased * recall.

Cost measures how many compute resources, and thus money, are * consumed to run the transform.

*/ inline void SetAccuracyCostTradeoff(double value) { m_accuracyCostTradeoffHasBeenSet = true; m_accuracyCostTradeoff = value; } /** *

The value that is selected when tuning your transform for a balance between * accuracy and cost. A value of 0.5 means that the system balances accuracy and * cost concerns. A value of 1.0 means a bias purely for accuracy, which typically * results in a higher cost, sometimes substantially higher. A value of 0.0 means a * bias purely for cost, which results in a less accurate FindMatches * transform, sometimes with unacceptable accuracy.

Accuracy measures how * well the transform finds true positives and true negatives. Increasing accuracy * requires more machine resources and cost. But it also results in increased * recall.

Cost measures how many compute resources, and thus money, are * consumed to run the transform.

*/ inline FindMatchesParameters& WithAccuracyCostTradeoff(double value) { SetAccuracyCostTradeoff(value); return *this;} /** *

The value to switch on or off to force the output to match the provided * labels from users. If the value is True, the find * matches transform forces the output to match the provided labels. The * results override the normal conflation results. If the value is * False, the find matches transform does not ensure all * the labels provided are respected, and the results rely on the trained * model.

Note that setting this value to true may increase the conflation * execution time.

*/ inline bool GetEnforceProvidedLabels() const{ return m_enforceProvidedLabels; } /** *

The value to switch on or off to force the output to match the provided * labels from users. If the value is True, the find * matches transform forces the output to match the provided labels. The * results override the normal conflation results. If the value is * False, the find matches transform does not ensure all * the labels provided are respected, and the results rely on the trained * model.

Note that setting this value to true may increase the conflation * execution time.

*/ inline bool EnforceProvidedLabelsHasBeenSet() const { return m_enforceProvidedLabelsHasBeenSet; } /** *

The value to switch on or off to force the output to match the provided * labels from users. If the value is True, the find * matches transform forces the output to match the provided labels. The * results override the normal conflation results. If the value is * False, the find matches transform does not ensure all * the labels provided are respected, and the results rely on the trained * model.

Note that setting this value to true may increase the conflation * execution time.

*/ inline void SetEnforceProvidedLabels(bool value) { m_enforceProvidedLabelsHasBeenSet = true; m_enforceProvidedLabels = value; } /** *

The value to switch on or off to force the output to match the provided * labels from users. If the value is True, the find * matches transform forces the output to match the provided labels. The * results override the normal conflation results. If the value is * False, the find matches transform does not ensure all * the labels provided are respected, and the results rely on the trained * model.

Note that setting this value to true may increase the conflation * execution time.

*/ inline FindMatchesParameters& WithEnforceProvidedLabels(bool value) { SetEnforceProvidedLabels(value); return *this;} private: Aws::String m_primaryKeyColumnName; bool m_primaryKeyColumnNameHasBeenSet = false; double m_precisionRecallTradeoff; bool m_precisionRecallTradeoffHasBeenSet = false; double m_accuracyCostTradeoff; bool m_accuracyCostTradeoffHasBeenSet = false; bool m_enforceProvidedLabels; bool m_enforceProvidedLabelsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws