utility to check inits

Offen
#967 1 Kommentar 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
cpp
Bereich
cli

Rechercherichtung

Beginnen Sie damit nachzuverfolgen, wie die Kommandozeilenschnittstelle die Methoden von stan::services aufruft und wie diese Methoden stan::services::initialize aufrufen. Definieren Sie ein Dienstprogramm, das initialize direkt aufruft, die angegebenen Anfangswerte meldet und die unter den Einschränkungen ausgewählten gültigen Werte meldet; abgeschlossen ist die Aufgabe, wenn die Initialisierung diagnostiziert werden kann, ohne eine Inferenz auszuführen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Feature user experience
Summary:

Conceptually, the model fitting process consists of 3 steps:

  1. compile the Stan program to a C++ executable via a call to GNU-make
  2. (instantiate the model with the data)
  3. do inference

Steps 2 and 3 are conflated by the command-line interface. Allow the user to do step 2.
This would only be useful as a way to diagnose problems with initialization, as we don't provide a way to serialize the instantiated model; it would solve the perennial problem of bad data init files; it would allow the user to see what the initial parameter values are.

Description:

The command line interface conflates steps 2 and 3 because it is a very lightweight wrapper which determines which of the stan::services methods to call, and all of the stan::services methods then in turn call function stan::services::initialize as part of doing inference.

Add a method or utility that calls initialize directly. As part of this, report initial parameter values supplied and if the parameters can be initialized given inits and constraints, report the set of valid initial values chosen (possibly at random).

Additional Information:

most recent discussion here: https://discourse.mc-stan.org/t/saving-reusing-adaptation-in-cmdstanr/19166/45

user ran into problems, couldn't figure out why intializing parameters wasn't working as expected.

Current Version:

v2.25.0

Vorherrschende Sprache
C++
Sterne
240
Forks
105
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus stan-dev/cmdstan

Alle Issues in stan-dev/cmdstan

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.