Pre/post usage? #371
-
Hi all, I've been using maestrowf for a couple of weeks and noticed while poking through the repo there are In pseudocode, I would like to do something like: run:
pre: Get latest model data from previous combination of parameters.
cmd: Train lastest model with current combination of parameters.
post: Update latest model for next combination of parameters. Since my Thanks for any help or suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Bryan, At the moment those features are not available. When they are implemented, they are intended to be run locally on a login/head node and should be lightweight operations. It sounds like you're intending the If you're looking for a way to do it in sequence, you can break that down to the following:
If that's not 100% what you're looking for, happy to discuss requirements for the |
Beta Was this translation helpful? Give feedback.
-
Hi Bryan,
From your last post, I think you're misunderstanding how parameters are applied a little bit. I'm also confused because I don't know if you're dealing with If you are pulling a singularly large dataset and know what data is in the set, you can do a - name: get_data
description: description: Get latest model data from previous combination of parameters.
run:
cmd: <run data scrape>
- name: train_model
description: Train lastest model with current combination of parameters.
run:
cmd: <train model> $(P1)
depends: [get_data]
- name: update_model
description: Update latest model for next combination of parameters.
run:
cmd: <update parameters> $(P1)
depends: [train_model]
global.parameters:
P1:
values : [1, 2, 3, 4, 5, 6, 7, 8, 9]
label : P1.%% In this case, If you need to pull multiple points from a reference set of data and then train your model, you can do something like the following: - name: get_data
description: description: Get latest model data from previous combination of parameters.
run:
cmd: |
<run data scrape> $(P1)
echo "DONE"
- name: train_model
description: Train lastest model with current combination of parameters.
run:
cmd: <train model> $(get_data.workspace)
depends: [get_data_*]
global.parameters:
P1:
values : [1, 2, 3, 4, 5, 6, 7, 8, 9]
label : P1.%% In this case, you're getting a bunch of data points and then singularly training a model. A few things to note:
Hopefully this makes sense. I'm going to be away handling something and might not be able to respond immediately. If you need specific help or anything is unclear here, please let me know and we can schedule something to talk through your use case. |
Beta Was this translation helpful? Give feedback.
Hi Bryan,
pre
andpost
would be intended as small, local, scripts that would run before and after each parameterized step. Thepost
capability would also be used to possibly drive workflow decisions based on a return code driven standard. So, for example, if a job completed and you could easily search or parse something to see if a simulation actually finished you could then return a code that says it's done or restart it. I think in terms how how you describepre
andpost
you're expecting that they'd run once for a step for all parameters?From your last post, I think you're misunderstanding how parameters are applied a little bit. I'm also confused because I don't know if you're dealing…