A new backend for Lomb Scargle Fourier Transform based on Low Rank Approximation
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 32/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- data, performance
Direzione di ricerca
Inizia in fourier.py, all’interno di lsft_fast, poi leggi l’articolo collegato e la pull request 17842 di Astropy per comprendere l’approccio NUFFT a basso rango proposto e i relativi controlli di accuratezza. Il lavoro è completato quando sarà aggiunto questo backend Lomb-Scargle ad alte prestazioni con FFT parallele opzionali, preservando i vantaggi dichiarati in termini di accuratezza, memoria e complessità temporale.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The paper introducing the method
The method seems to provide much closer accuracy to the slow method, while maintaining the same time complexity (just scaled up by a constant). I suggest we parallellize the FFTs in the LRA optionally using numba. This method is currently in development at astropy. Its a much smaller hassle to implement in Stingray.jl as FastTransforms.jl has an implementation. But nonetheless that is not really my forte someone else can take it up.
TLDR
I propose implementing a newer, high-performance algorithm for the Lomb-Scargle periodogram based on the Non-Uniform Fast Fourier Transform (NUFFT) via Low-Rank Approximation (LRA). This method offers significant advantages over the traditional fast method (Press & Rybicki) in terms of parallelism, accuracy control, and memory efficiency.
This method is slowly being adopted already in the FOSS community, with a reference implementation in development for astropy (astropy/astropy#17842).
The Method
The core idea is to re-frame the non uniform discrete fourier transform problem. Instead of "spreading" non-uniform data onto a uniform grid (like Press & Rybicki), this method decomposes the non-uniform transform matrix itself into a sum of a small, fixed number (K) of diagonally-scaled, uniform DFTs.
Paper: A Nonuniform Fast Fourier Transform based on Low Rank Approximation
Key Advantages
- Parallelism: The algorithm consists of K (typically ~16 for double precision) completely independent FFTs. This is a perfect fit for modern multi-core CPUs and can be parallelized trivially using tools like numba, potentially leading to a massive speedup over the mostly-sequential Press & Rybicki method.
- Tunable and Guaranteed Accuracy: The accuracy is explicitly controlled by the parameter K, which is chosen based on a desired working precision ε. Unlike the spreading method, where accuracy is indirectly tied to the oversampling factor, this method provides a direct and a priori error bound. This means we can offer users a much more predictable trade-off between speed and precision. It is less costly than the oversampling in the Press & Rybicki method.
- Memory Efficiency: This method avoids creating a large, oversampled grid for the FFT. It operates on vectors of the original data size N, making it more memory-friendly, especially for very large datasets where the oversampling grid of other methods might become a bottleneck.
Implementation Pointers
- The K independent FFTs are an ideal use case for numba.njit(parallel=True). A prange loop could compute all K FFTs concurrently.
- The Astropy PR has an implementation we can refer to in order to modify our lsft_fast in fourier.py
- Lingua principale
- Python
- Stelle
- 229
- Fork
- 196
- Merge medio
- 4g 12h
- PR unite (30g)
- 20
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di StingraySoftware/stingray
-
create_gti_mask drops valid points after empty GTIs and crashes with min_length > 0 and dtForse già presa @Rohan-Dedhia l’ha presa 5 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
StingraySoftware/stingray#1044 ·
I maintainer di solito rispondono entro 3 giorni
-
Docstrings that name parameters the function does not take: full list, categorised (25 sites)Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
StingraySoftware/stingray#1042 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
StingraySoftware/stingray#1039 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
stingray: arbitrary code execution reading a pickle-format data product (read fmt=pickle) (CWE-502)Forse di nuovo libera @yash-8923 l’ha presa 11 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
StingraySoftware/stingray#1037 · 3 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
AveragedCrossspectrum returns zeros when using simulated light curves with input_counts=False.Forse già presa @VrtxOmega l’ha presa 176 giorni fa. Apertabug help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
StingraySoftware/stingray#977 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di StingraySoftware/stingray
Issue simili
-
Public benchmark import end-to-end test fails when the test stack's worker runs the parity jobApertaaccepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
future-agi/future-agi#6392 ·
I maintainer di solito rispondono entro 1 giorno
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdForse già presa @prathameshfuke l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
StingraySoftware/HENDRICS#213 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno