Show HN: I built a micro-temporal transaction velocity baseline filter

Zie_Mordecai1 pts0 comments

GitHub - damariushayes/time-series-velocity-baseline · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

damariushayes

time-series-velocity-baseline

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>10 Commits<br>10 Commits

.gitignore

.gitignore

LICENSE

LICENSE

README.md

README.md

macro.py

macro.py

micro.py

micro.py

pyproject.toml

pyproject.toml

View all files

Repository files navigation

Localized Time-Series Velocity Baseline Utilities

A clean, high-performance mathematical toolkit engineered to perform time-series decomposition, outlier mitigation, and variance profiling on sparse multi-index point-of-sale datasets.

Core Features

Micro-Horizon Capacity Valuation: Pinpoints localized time windows where system velocities experience standard deviations below historical trends.

Stochastic Outlier Control: Robust preprocessing modules to isolate network latency drops from structural operational freezes.

Macro-Temporal Structural Decomposition: Uses additive multi-layered time-series filters to parse trend, cycle, and structural day-of-week closures.

Installation

pip install .

## Quick Start

You can use the baseline filter by passing a Pandas DataFrame containing your raw transaction logs. The DataFrame requires four columns: `zip_code`, `mcc`, `timestamp`, and `volume`.

```python<br>import pandas as pd<br>from micro import calculate_optimized_baseline

# 1. Create dummy transaction logs (e.g., a register processing transactions)<br>data = {<br>"zip_code": ["90210"] * 5,<br>"mcc": ["5411"] * 5, # Grocery Stores<br>"timestamp": [<br>"2026-06-28 09:00:00",<br>"2026-06-28 09:15:00",<br>"2026-06-28 09:30:00",<br>"2026-06-28 09:45:00",<br>"2026-06-28 10:00:00" # Sudden silent dropout<br>],<br>"volume": [120, 115, 130, 125, 5] # Massive sudden drop in transaction volume

df = pd.DataFrame(data)

# 2. Run the optimization baseline filter (alpha controls detection sensitivity)<br>dead_zones = calculate_optimized_baseline(df, alpha=0.25)

print(dead_zones)

About

No description, website, or topics provided.

Resources

Readme

License

MIT license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

stars

Watchers

watching

Forks

forks

Report repository

Releases

No releases published

Packages

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

Python<br>100.0%

You can’t perform that action at this time.

time baseline reload micro series search

Related Articles