-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
716 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env python | ||
|
||
###################################### | ||
# Imports | ||
###################################### | ||
|
||
import mlflow | ||
from prefect import context, flow, task | ||
from prefect.task_runners import ConcurrentTaskRunner | ||
|
||
from deeprootgen.data_model import RootSimulationModel | ||
from deeprootgen.model import RootSystemSimulation | ||
from deeprootgen.pipeline import ( | ||
begin_experiment, | ||
log_config, | ||
log_experiment_details, | ||
log_simulation, | ||
) | ||
|
||
###################################### | ||
# Main | ||
###################################### | ||
|
||
|
||
@task | ||
def run_abc() -> None: | ||
print("hello") | ||
|
||
|
||
@flow( | ||
name="abc", | ||
description="Perform Bayesian parameter estimation for the root model using Approximate Bayesian Computation.", | ||
task_runner=ConcurrentTaskRunner(), | ||
) | ||
def run_abc_flow( | ||
# input_params: RootSimulationModel | ||
) -> None: | ||
run_abc.submit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env python | ||
|
||
###################################### | ||
# Imports | ||
###################################### | ||
|
||
import mlflow | ||
from prefect import context, flow, task | ||
from prefect.task_runners import ConcurrentTaskRunner | ||
|
||
from deeprootgen.data_model import RootSimulationModel | ||
from deeprootgen.model import RootSystemSimulation | ||
from deeprootgen.pipeline import ( | ||
begin_experiment, | ||
log_config, | ||
log_experiment_details, | ||
log_simulation, | ||
) | ||
|
||
###################################### | ||
# Main | ||
###################################### | ||
|
||
|
||
@task | ||
def run_optimisation() -> None: | ||
print("hello") | ||
|
||
|
||
@flow( | ||
name="optimisation", | ||
description="Run an optimisation procedure for the root model.", | ||
task_runner=ConcurrentTaskRunner(), | ||
) | ||
def run_optimisation_flow( | ||
# input_params: RootSimulationModel | ||
) -> None: | ||
run_optimisation.submit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env python | ||
|
||
###################################### | ||
# Imports | ||
###################################### | ||
|
||
import mlflow | ||
from prefect import context, flow, task | ||
from prefect.task_runners import ConcurrentTaskRunner | ||
|
||
from deeprootgen.data_model import RootSimulationModel | ||
from deeprootgen.model import RootSystemSimulation | ||
from deeprootgen.pipeline import ( | ||
begin_experiment, | ||
log_config, | ||
log_experiment_details, | ||
log_simulation, | ||
) | ||
|
||
###################################### | ||
# Main | ||
###################################### | ||
|
||
|
||
@task | ||
def run_sensitivity_analysis() -> None: | ||
print("hello") | ||
|
||
|
||
@flow( | ||
name="sensitivity_analysis", | ||
description="Run a sensitivity analysis for the root model.", | ||
task_runner=ConcurrentTaskRunner(), | ||
) | ||
def run_sensitivity_analysis_flow( | ||
# input_params: RootSimulationModel | ||
) -> None: | ||
run_sensitivity_analysis.submit() |
Oops, something went wrong.