---
title: "Explain ML predictions (VAE + LSTM RUL)"
method: GET
path: "/api/ml/explain/{switch_name}/{port_name}"
tags: ["ML"]
---

# Explain ML predictions (VAE + LSTM RUL)

`GET /api/ml/explain/{switch_name}/{port_name}`

## Request

- Base URL: `https://api.fiber.ac` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fiber.ac/api/ml/explain/{switch_name}/{port_name}`
- Auth: none declared

Return per-feature breakdown of the current anomaly score (VAE reconstruction error per feature) alongside the LSTM RUL gradient × input saliency (which feature drove the prediction). Designed so NOC engineers can answer "why is this port flagged?" at a glance.

## Path parameters

- `switch_name` string, required
- `port_name` string, required

## Response `200`

per-feature contribution + top 5 features

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fiber-ac/apis/fiber-api.md) · [All operations](https://skmtc.dev/fiber-ac/apis/fiber-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fiber-ac/apis/fiber-api/revisions/58267250d793?raw)
