You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Miroslav Jiřík edited this page Jun 3, 2013
·
2 revisions
Each module has functions
get_params() - data independent parameters
get_inputs() - data dependent user interactivity
Recommended functions:
set_params()
run()
Example
mod1 = Module1()
mod1.set_params(data=data, parameter1='a', parameter2=1,)
mod1.run()
# user make interactivity
mod1params = mod1.get_params()
mod1inputs = mod1.get_inputs()
# now we have parameters and we can run the same again
# concatenate params and inputs
mod1params.update(mod1inputs)
mod1params.update({'data':data})
mod1b = Module1()
mod1b.set_params(**mod1paras)
mod1b.run()