

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 特徵處理器 SDK 資料來源
<a name="feature-store-feature-processor-data-sources-sdk"></a>

適用於 Python 的 Amazon SageMaker Feature Store 特徵處理器 SDK (Boto3) 提供可從 Amazon S3 中儲存的特徵群組或物件載入資料的建構模組。有關特徵商店提供的資料來源定義的完整清單，請參閱[特徵處理器資料來源 Feature Store Python SDK](https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/feature_store/feature_processor/_data_source.py)。

如需有關如何使用特徵商店 Python SDK 資料來源定義的範例，請參閱[常見使用案例的特徵處理程式碼範例](feature-store-feature-processor-examples.md)。

## 特徵群組資料來源
<a name="feature-store-feature-processor-data-sources-sdk-featuregroup"></a>

`FeatureGroupDataSource` 用於將特徵群組指定為特徵處理器的輸入資料來源。可以從離線儲存特徵群組載入資料。嘗試從線上儲存特徵群組載入資料會導致驗證錯誤。您可以指定開始偏移和結束偏移，將載入的資料限制在特定時間範圍內。例如，您可以指定 '14 天' 的開始移位，以僅載入過去兩週的資料，還可以指定結束移為為 '7 天'，將輸入限制為上一週的資料。

## 特徵商店提供的資料來源定義
<a name="feature-store-feature-processor-data-sources-sdk-provided-sources"></a>

特徵商店 Python SDK 包含可用於為特徵處理器指定各種輸入資料來源的資料來源定義。其中包含 CSV、Parquet 和 Iceberg 表來源。有關 Feature Store 提供的資料來源定義的完整清單，請參閱[特徵處理器資料來源 Feature Store Python SDK](https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/feature_store/feature_processor/_data_source.py)。