Git Product home page Git Product logo

Comments (6)

perrydv avatar perrydv commented on June 3, 2024

I agree it is unclear what is needed here since it is legitimate to define (and compile) a model before putting values into it. Maybe we should provide a nimbleFunction that checks if a model is ready to use, so it would be easy to insert that step at the beginning of other nimbleFunctions when needed?

from nimble.

danielturek avatar danielturek commented on June 3, 2024

Maybe we should provide a nimbleFunction that checks if a model is ready
to use, so it would be easy to insert that step at the beginning of other
nimbleFunctions when needed?

The function described above is more or less exactly the nimbleFunction I
wrote called "initializeModel", which is already in use at the beginning of
algorithmic nimbleFunctions in devel.

Daniel

On Mon, May 4, 2015 at 4:01 PM, perrydv [email protected] wrote:

I agree it is unclear what is needed here since it is legitimate to define
(and compile) a model before putting values into it. Maybe we should
provide a nimbleFunction that checks if a model is ready to use, so it
would be easy to insert that step at the beginning of other nimbleFunctions
when needed?


Reply to this email directly or view it on GitHub
#13 (comment).

from nimble.

paciorek avatar paciorek commented on June 3, 2024

should we
a) call initializeModel() at the end of nimbleModel()
b) mention initializeModel() in the manual?

If we do do (a), I don't think we want to automatically simulate into
stochastic nodes unless a user specifically requests it, but deterministic
nodes are another story.

I think the main things to be concerned about are missing values in data
nodes, stochastic parameter nodes, and RHS only nodes, in terms of what to
warn users about.

On Tue, May 26, 2015 at 1:17 PM, Daniel Turek [email protected]
wrote:

Maybe we should provide a nimbleFunction that checks if a model is ready
to use, so it would be easy to insert that step at the beginning of other
nimbleFunctions when needed?

The function described above is more or less exactly the nimbleFunction I
wrote called "initializeModel", which is already in use at the beginning of
algorithmic nimbleFunctions in devel.

Daniel

On Mon, May 4, 2015 at 4:01 PM, perrydv [email protected] wrote:

I agree it is unclear what is needed here since it is legitimate to
define
(and compile) a model before putting values into it. Maybe we should
provide a nimbleFunction that checks if a model is ready to use, so it
would be easy to insert that step at the beginning of other
nimbleFunctions
when needed?


Reply to this email directly or view it on GitHub
#13 (comment).


Reply to this email directly or view it on GitHub
#13 (comment).

from nimble.

danielturek avatar danielturek commented on June 3, 2024

I had already added a very brief section on initializeModel() to the
developer manual. It's at the very end.

We could add an option to initializeModel() which determines whether or not
it simulates into missing-valued nodes. At the moment it does.

Daniel

On Tue, May 26, 2015 at 1:48 PM, Christopher Paciorek <
[email protected]> wrote:

should we
a) call initializeModel() at the end of nimbleModel()
b) mention initializeModel() in the manual?

If we do do (a), I don't think we want to automatically simulate into
stochastic nodes unless a user specifically requests it, but deterministic
nodes are another story.

I think the main things to be concerned about are missing values in data
nodes, stochastic parameter nodes, and RHS only nodes, in terms of what to
warn users about.

On Tue, May 26, 2015 at 1:17 PM, Daniel Turek [email protected]
wrote:

Maybe we should provide a nimbleFunction that checks if a model is
ready
to use, so it would be easy to insert that step at the beginning of other
nimbleFunctions when needed?

The function described above is more or less exactly the nimbleFunction I
wrote called "initializeModel", which is already in use at the beginning
of
algorithmic nimbleFunctions in devel.

Daniel

On Mon, May 4, 2015 at 4:01 PM, perrydv [email protected]
wrote:

I agree it is unclear what is needed here since it is legitimate to
define
(and compile) a model before putting values into it. Maybe we should
provide a nimbleFunction that checks if a model is ready to use, so it
would be easy to insert that step at the beginning of other
nimbleFunctions
when needed?


Reply to this email directly or view it on GitHub
<#13 (comment)
.


Reply to this email directly or view it on GitHub
#13 (comment).


Reply to this email directly or view it on GitHub
#13 (comment).

from nimble.

paciorek avatar paciorek commented on June 3, 2024

My thought is that at the end of nimbleModel(), we:

  1. simulate into all deterministic nodes
  2. warn users of any data nodes, RHS only nodes, or stochastic param nodes
    that are NA or NaN

We could have a flag to nimbleModel that turns off warnings or have a new
nimbleOption that controls that and other warnings.

For the purpose of #1, having an option for initializeModel that would
avoid simulating stoch nodes would be good.

On Tue, May 26, 2015 at 3:25 PM, Daniel Turek [email protected]
wrote:

I had already added a very brief section on initializeModel() to the
developer manual. It's at the very end.

We could add an option to initializeModel() which determines whether or not
it simulates into missing-valued nodes. At the moment it does.

Daniel

On Tue, May 26, 2015 at 1:48 PM, Christopher Paciorek <
[email protected]> wrote:

should we
a) call initializeModel() at the end of nimbleModel()
b) mention initializeModel() in the manual?

If we do do (a), I don't think we want to automatically simulate into
stochastic nodes unless a user specifically requests it, but
deterministic
nodes are another story.

I think the main things to be concerned about are missing values in data
nodes, stochastic parameter nodes, and RHS only nodes, in terms of what
to
warn users about.

On Tue, May 26, 2015 at 1:17 PM, Daniel Turek [email protected]
wrote:

Maybe we should provide a nimbleFunction that checks if a model is
ready
to use, so it would be easy to insert that step at the beginning of
other
nimbleFunctions when needed?

The function described above is more or less exactly the
nimbleFunction I
wrote called "initializeModel", which is already in use at the
beginning
of
algorithmic nimbleFunctions in devel.

Daniel

On Mon, May 4, 2015 at 4:01 PM, perrydv [email protected]
wrote:

I agree it is unclear what is needed here since it is legitimate to
define
(and compile) a model before putting values into it. Maybe we should
provide a nimbleFunction that checks if a model is ready to use, so
it
would be easy to insert that step at the beginning of other
nimbleFunctions
when needed?


Reply to this email directly or view it on GitHub
<
#13 (comment)
.


Reply to this email directly or view it on GitHub
<#13 (comment)
.


Reply to this email directly or view it on GitHub
#13 (comment).


Reply to this email directly or view it on GitHub
#13 (comment).

from nimble.

paciorek avatar paciorek commented on June 3, 2024

I believe this is addressed with our new check() functionality.

from nimble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.