refactor(pyrox-xtreme): the exponential Hawkes compensator runs on integrix's VolterraOperator
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Read packages/pyrox-xtreme/src/pyrox_xtreme/point_processes/operators/hawkes.py and distributions/hawkes.py, then check whether integrix#138 is available and how VolterraOperator is exposed. Replace the internal recursion with that operator while preserving the public API. Compare likelihoods to 10⁻¹² on existing tests and a long synthetic sequence, check gradients for μ, α and β, and run lint, type checks, and tests.
Written by the indexing model from the issue text.
Description
Problem / Request
Compute the intensity and compensator of pyrox_xtreme.point_processes.ExponentialHawkes with integrix.operator.VolterraOperator, the causal integral operator with an exponential kernel, instead of a recursion written in pyrox-xtreme.
User Story
As the pyrox-xtreme maintainer, I want the Hawkes compensator to be integrix's causal operator, so one tested scan serves the point processes and any other memory operator in the stack.
Motivation
The Hawkes intensity is a Volterra operator on the counting measure, and its compensator is the same operator integrated once more (design §4.8). integrix gains VolterraOperator in jejjohnson/integrix#138; this issue makes pyrox-xtreme its first consumer.
Proposed API
Public API of ExponentialHawkes unchanged:
# today (pyrox-xtreme), unchanged
ExponentialHawkes(...).log_prob(times, mask)
# proposed (integrix, jejjohnson/integrix#138): λ(t) = μ + 𝒱[dN](t), Λ(t) = μ t + ∫₀ᵗ 𝒱[dN](s) ds
volterra = integrix.operator.VolterraOperator(scale=alpha, decay=beta)
References & Existing Code
- Design:
docs/design/missing_operators.mdin jejjohnson/geostack (merged in jejjohnson/geostack#371): §4.8, decision GS-D9, step S9. ExponentialHawkesinpackages/pyrox-xtreme/src/pyrox_xtreme/point_processes/operators/hawkes.pyanddistributions/hawkes.py.
Implementation Steps
- Replace the internal recursion with
VolterraOperator; add integrix as a dependency of pyrox-xtreme if it is not one already.
Definition of Done
- The Hawkes log-likelihood unchanged to 10⁻¹² on the existing tests and a long synthetic sequence.
- Gradients with respect to μ, α and β unchanged.
- Lint, type check and tests green.
Relationships
- Parent: jejjohnson/geostack#372
- Blocked by: jejjohnson/integrix#138
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- Avg merge
- 8h 28m
- Merged PRs (30d)
- 139
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jejjohnson/pyrox
-
refactor(pyrox-lgm): the SPDE component takes its finite-element operators from kernellibPossibly taken A pull request linked to this issue is open or already merged. Openpkg:lgm type:chore upstream-gaussx
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
jejjohnson/pyrox#610 ·
Maintainers usually reply within 1 day
-
feat(pyrox-ssm): particle_factor adds a particle filter's log-evidence to a NumPyro modelPossibly taken A pull request linked to this issue is open or already merged. Openarea:integration pkg:ssm type:feature
Difficulty 4/5 3-5 days Newbie friendliness 67/100
jejjohnson/pyrox#611 ·
Maintainers usually reply within 1 day
-
chore(deps): declare gaussx-linalg and gaussx-infer in place of gaussxPossibly taken A pull request linked to this issue is open or already merged. Opendependencies type:chore upstream-gaussx
Difficulty 4/5 3-5 days Newbie friendliness 50/100
jejjohnson/pyrox#609 ·
Maintainers usually reply within 1 day
-
chore(pyrox-gauss): import gaussx's deprecation warning and structured inverse diagonal by public namesPossibly taken A pull request linked to this issue is open or already merged. Openpkg:gauss type:chore upstream-gaussx
Difficulty 4/5 3-5 days Newbie friendliness 35/100
jejjohnson/pyrox#608 ·
Maintainers usually reply within 1 day
-
area:gp pkg:gp type:feature
Difficulty 5/5 Over a week Newbie friendliness 35/100
jejjohnson/pyrox#606 ·
Maintainers usually reply within 1 day
All issues in jejjohnson/pyrox
Similar issues
-
A JSON chat answer blocks the backend event loop for the whole RAG runPossibly taken @NopeCharon claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
The-OpenROAD-Project/ORAssistant#656 ·
Maintainers usually reply within 1 day
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day