Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a clear interface that explicitly binds each parameter to one layer (many-to-one) #28

Open
andsor opened this issue Apr 3, 2016 · 2 comments

Comments

@andsor
Copy link
Member

andsor commented Apr 3, 2016

I would like to reconsider the flexible hierarchization framework we developed last time

instead, I would like to propose to explicitly bind parameter(s) to layers, each parameter belongs to a layer, each layer may have multiple parameters (1-n)

let's say we have a simulation function

def sim(x, y, z):
    ...

Then I could write

xp = Experiment(sim, inputgen={'x': ...})

to bind x and leave y and z unbound for upper layers

the package automatically detects that only x is bound

it also inspects the generator and if it takes additionally arguments such as y or z, it automagically supplies the values to it at runtime

@andsor andsor added this to the Specification 1.0 milestone Apr 3, 2016
@andsor
Copy link
Member Author

andsor commented Apr 3, 2016

each input generator can take additional arguments, which need to be supplied by upper layers

@andsor
Copy link
Member Author

andsor commented Apr 3, 2016

for example, the number of realizations / initial conditions to generate etc.

@andsor andsor changed the title Provide a clear interface that explicitly binds each parameter to one layer (n-1) Provide a clear interface that explicitly binds each parameter to one layer (many-to-one) Apr 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant