

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

# Factorization Machines Antwortformate
<a name="fm-in-formats"></a>

Amazon SageMaker AI bietet verschiedene Antwortformate, um Rückschlüsse aus dem Factorization Machines-Modell zu ziehen, wie JSON, JSONLINES und RECORDIO, mit spezifischen Strukturen für binäre Klassifizierungs- und Regressionsaufgaben.

## JSON-Antwortformat
<a name="fm-json"></a>

Binäre Klassifikation

```
let response =   {
    "predictions":    [
        {
            "score": 0.4,
            "predicted_label": 0
        } 
    ]
}
```

Regression

```
let response =   {
    "predictions":    [
        {
            "score": 0.4
        } 
    ]
}
```

## JSONLINES-Antwortformat
<a name="fm-jsonlines"></a>

Binäre Klassifikation

```
{"score": 0.4, "predicted_label": 0}
```

Regression

```
{"score": 0.4}
```

## RECORDIO-Antwortformat
<a name="fm-recordio"></a>

Binäre Klassifikation

```
[
    Record = {
        features = {},
        label = {
            'score’: {
                keys: [],
                values: [0.4]  # float32
            },
            'predicted_label': {
                keys: [],
                values: [0.0]  # float32
            }
        }
    }
]
```

Regression

```
[
    Record = {
        features = {},
        label = {
            'score’: {
                keys: [],
                values: [0.4]  # float32
            }   
        }
    }
]
```