Skip to content

Commit

Permalink
extend api files
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Apr 23, 2024
1 parent a3e3401 commit ea4df5c
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/task/api/comp_method_run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
functionality:
namespace: "methods"
info:
type: method
type_info:
label: Run
summary: Apply a pre-trained model
description: |
Apply a pre-trained model for the DGE perturbation prediction task.
arguments:
- name: --de_train
__merge__: file_de_train_parquet.yaml
required: true
direction: input
- name: --id_map
__merge__: file_id_map.yaml
required: true
direction: input
- name: --model
type: file
description: The model to use for prediction.
required: true
direction: input
- name: --output
__merge__: file_prediction.yaml
required: true
direction: output
test_resources:
- type: python_script
path: /src/common/component_tests/run_and_check_output.py
- path: /resources/neurips-2023-data
dest: resources/neurips-2023-data
28 changes: 28 additions & 0 deletions src/task/api/comp_method_train.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
functionality:
namespace: "methods"
info:
type: method
type_info:
label: Train
summary: Train a model for a regression method.
description: |
Train a model for a regression method for the DGE perturbation prediction task.
arguments:
- name: --de_train
__merge__: file_de_train_parquet.yaml
required: true
direction: input
- name: --id_map
__merge__: file_id_map.yaml
required: true
direction: input
- name: --model
type: file
description: The model to use for prediction.
required: true
direction: output
test_resources:
- type: python_script
path: /src/common/component_tests/run_and_check_output.py
- path: /resources/neurips-2023-data
dest: resources/neurips-2023-data

0 comments on commit ea4df5c

Please sign in to comment.