> For the complete documentation index, see [llms.txt](https://docs.graphite-note.com/graphite-note-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphite-note.com/graphite-note-documentation/graphite-note-models/advanced-ml-model-settings/regressors/frequency-alignment.md).

# Frequency alignment

#### Frequency Alignment: Matching Regressors to Your Model’s Time Granularity

Every regressor must supply exactly one value for each timestamp in your target series—no more, no less. Graphite Note enforces this 1:1 rule to ensure your external features line up perfectly with what you’re forecasting.

* Daily models → one regressor value per date
* Hourly models → one regressor value per hour
* Weekly models → one regressor value per week, etc.

If your raw data has a finer granularity than your model (e.g., minute-level web clicks for a daily forecast), you must aggregate it (sum, mean, max, etc.) so each day has a single number. Conversely, you can’t “stretch” a single daily value into multiple hourly slots without interpolation—each timestamp needs its own authentic input.\
\
\&#xNAN;***Numerical Regressors (e.g. Cost per Unit)***

* *Aggregate before uploading.*
* *Choose a summary statistic that fits your use case:*
  * *Average (mean unit cost)*
  * *Sum (total cost volume)*
  * *Max/Min (peak or baseline cost)*
* *Result: one number per date (or hour/week) that aligns 1:1 with your target.*

\
\&#xNAN;***Categorical Regressors (e.g. Category Code, Weather Label)***

* *Ensure only one category value per timestamp.*
* *If multiple occur:*
  * *Select the most representative label (e.g., “predominant” weather condition),*
  * *Encode logic-based rules (e.g., if any “Rain” occurs → is\_Rain = 1),*
  * *Or use proportions: % Category A = count(A) ÷ total.*

By strictly aligning frequencies—one regressor row for each target timestamp—you eliminate timing mismatches and give your model clean, reliable inputs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.graphite-note.com/graphite-note-documentation/graphite-note-models/advanced-ml-model-settings/regressors/frequency-alignment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
