kmzzhang / nbi

Package for Neural Posterior Estimation and Importance Sampling focused on Astronomical Applications
Other
34 stars 4 forks source link

Feature Request: Pass pre-generated data and simulator function simultaneously #36

Closed wei-lingfeng closed 5 months ago

wei-lingfeng commented 5 months ago

Is there a way to feed pre-generated data and the simulator function simultaneously, so that nbi doesn't have to re-genereate simulated data each time but can still perform importance sampling?

kmzzhang commented 5 months ago

Yes, if x and y are supplied in engine.fit() then it uses that supplied data even if simulator is specified