`_return_predictions` should always run the Tables.materializer

Aperta
#249 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
julia
Ambito
data

Direzione di ricerca

Start in src/statsmodel.jl at the _return_predictions AbstractVector method around lines 149-154, and compare it with the other predict return-type paths that call Tables.materializer. Done means the AbstractVector path also materializes T((; predictions = out)), allowing table-compatible multidimensional predictions to retain their shape; account for the noted breaking change.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

For most predict return types Tables.materializer is called. But the AbstractVector method just returns a vector: https://github.com/JuliaStats/StatsModels.jl/blob/master/src/statsmodel.jl#L149-L154
For some objects it would be preferable if it called the materializer with T((; predictions = out)).

For example, a DimensionalData.jl/Rasters.jl stack or array can be used as a table, but it cant get a stack/array back without Tables.materializer being called. This means predict on multimensional spatial variables returns non-spatial single dimension predictions that have to be manually reshaped, instead of it being automatic.

This will probably be a breaking change.

Lingua principale
Julia
Stelle
250
Fork
35
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di JuliaStats/StatsModels.jl

Tutte le issue di JuliaStats/StatsModels.jl

Issue simili

Altre issue su Julia

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.