> ## Documentation Index
> Fetch the complete documentation index at: https://offthepace.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# fct_power_law_training

> WI-17: the training frame for ml/src/powerlaw.py, one row per fit_eligible race x hardness rank cell.

<Note>Part of the [Marts](/transform/families/marts) family.</Note>

WI-17: the training frame for ml/src/powerlaw\.py, one row per fit\_eligible race x hardness rank cell. Targets from int\_cell\_power\_law\_fit (alpha\_s, beta, curve\_incr\_\*\_s) and an allowlist of features the Degradation Simulator can supply (W26): compound\_hardness\_rank, era\_code, track\_energy\_index, circuit\_abrasiveness\_index, track\_temp\_c (circuit-season median), stint\_start\_fuel\_kg, dirty\_air\_share, constructor\_pace\_s. No compound\_cliff\_params column and nothing priced from it, including the warehouse's ambient\_temp\_delta (T51, assert\_power\_law\_no\_seed\_columns.sql and ml/tests/test\_powerlaw\_export.py).

## Lineage

```mermaid theme={null}
flowchart LR
  fct_cliff_prediction_features --> fct_power_law_training
  int_cell_power_law_fit --> fct_power_law_training
  int_lap_fuel_state --> fct_power_law_training
  int_power_law_lap --> fct_power_law_training
  style fct_power_law_training fill:#e40404,stroke:#e40404,color:#fff
```

## Overview

| Property | Value |
| - | - |
| Layer | `marts` |
| Family | [Marts](/transform/families/marts) |
| Contract enforced | No |
| Upstream | [`int_cell_power_law_fit`](../int/int_cell_power_law_fit), [`int_power_law_lap`](../int/int_power_law_lap), [`fct_cliff_prediction_features`](./fct_cliff_prediction_features), [`int_lap_fuel_state`](../int/int_lap_fuel_state) |

**14 tests** [guard](/transform/ci/overview) this model  -  13 generic, 1 singular.

## Columns

| Column | Type | Nullable | Tests | Description |
| - | - | - | - | - |
| `cell_id` | | Yes | [`not_null`](/transform/ci/structural), [`unique`](/transform/ci/structural) | |
| `n_laps` | | Yes | [`not_null`](/transform/ci/structural) | Laps in the cell's fit; the training sample weight. |
| `compound_hardness_rank` | | Yes | [`not_null`](/transform/ci/structural) | |
| `era_code` | | Yes | [`not_null`](/transform/ci/structural), [`accepted_values`](/transform/ci/range-and-domain) | 0 = 2018, 1 = 2019-21, 2 = 2022+. |
| `track_energy_index` | | Yes | [`not_null`](/transform/ci/structural) | |
| `circuit_abrasiveness_index` | | Yes | [`not_null`](/transform/ci/structural) | |
| `stint_start_fuel_kg` | | Yes | [`not_null`](/transform/ci/structural) | |
| `dirty_air_share` | | Yes | [`not_null`](/transform/ci/structural) | |
| `constructor_pace_s` | | Yes | [`not_null`](/transform/ci/structural) | |
| `curve_incr_20_s` | | Yes | [`not_null`](/transform/ci/structural) | Degradation at age 20 over the age-2 fresh pace (s); the level model's target. |
| `beta` | | Yes | [`not_null`](/transform/ci/structural) | The shape model's target. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.