File size: 6,775 Bytes
7f50cd1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Predict gene responses across cell contexts

## Goal

A cell biology lab measures how compounds change gene expression in different cell contexts. The assay team supplies observed compound–context response vectors and asks you to predict the missing pairs. Each coordinate is a signed, clipped statistic of differential gene expression after treatment. The lab's analysts need predictions that transfer information across compounds and cell contexts, with smaller errors across the response vector.

The assay team treats context and compound labels as categorical identifiers: their spelling encodes no numerical distance. This is not a time-series problem. The team fixes a shared gene-coordinate order across the files of an instance.

## What You Have

| Path | Contents |
|---|---|
| `/app/methods/main/` | Your submission, initially a starter that predicts each cell context's mean training response (the overall mean for an unseen context), with entry point `run.sh` |
| `/app/core/` | Shared readers and metric; the service sets `CORE_DIR=/app/core` |
| `/app/data/` | Practice inputs, in a subdirectory for each instance |
| `/app/data-answers/` | Practice answers, in matching sibling subdirectories |
| `/app/selfcheck.py` | The rehearsal command described below |

The lab provides 5 practice instances. The assay team's input files are UTF-8 tab-separated text with headers:

- `train.tsv` contains an observed response vector for each known context–compound pair. Its header begins with `row`, `group`, `item`, followed by the value columns. The practice training table has 402 rows. Each practice vector has 5317 coordinates. Coordinate names are `v` followed by a zero-padded index, starting at `v0000`; read the actual columns and their order from the header rather than hard-coding the width.
- `queries.tsv` contains only `row`, `group`, `item`, identifying the missing pairs in the order to predict. Each practice query table has 8 rows. Row identifiers are unique within a file.
- `answers.tsv` in each practice answer directory uses the training-style header and carries the corresponding query rows. These answers let you select and validate models locally.

| File term | Meaning in the lab |
|---|---|
| `row` | An observation or prediction-request identifier |
| `group` | A cell context |
| `item` | A compound |
| Value column | A gene's response statistic |

`names.json` (described below) gives the cell type, compound and gene behind each code. The assay team keeps every compound's query rows together when splitting practice from grading; query-pair values are absent from every training input. Known training observations may be shared between instances. The team never adds practice answer rows to a graded input.

The assay's declared true-response domain is -4 to 4 inclusive. This is a property of the response definition. Observed vectors are finite signed values. The supplied reader is `interface/records.py` under the core directory; access the directory through `os.environ["CORE_DIR"]`.

Each input directory also contains `names.json`, which gives the identities behind the neutral codes: `group` maps each cell-context code to its immune cell type, `item` maps each compound code to the compound's name, and `value` maps each value-column code to the gene symbol whose differential-expression statistic that column holds. The codes mean the same in every instance.

## What You Submit

The lab's computing service collects a general method in `/app/methods/main/`. Only that directory is carried into the clean grading container, which provides the same runtime and `/app/core/`; keep any code, fitted parameters, and other files your method needs inside the submission directory. The service does not carry other saved session files into grading.

Provide an executable entry with signature `run.sh <data dir> <output dir>`. The service calls it separately for each instance. Read the read-only data directory and write `prediction.tsv` into the supplied output directory.

The evaluation service requires the prediction header to be `row` followed by exactly the value columns from `train.tsv`, in their original order. Write a prediction for every query in query order, preserving its row identifier and supplying a finite numeric prediction for every coordinate. The service rejects missing, duplicate, reordered, extra, or nonfinite entries. Predictions may be any finite real values; the true-response domain does not constrain submitted values.

The computing service accepts only regular text output files of at most 64 MB each. If `/app/methods/main/build.sh` exists, the service runs it once offline before evaluating instances, with a limit of 900 seconds. A failed build fails the whole submission.

## Budget

The computing service allows 60 seconds per instance and supplies that limit as `TASK_BUDGET_SEC`. Grading uses 4 CPUs and 8 GB of memory, with no network access. Choose thread counts that fit those grading resources. The service runs your method under an unprivileged account, the same account used for rehearsal. It kills methods still running at the deadline and processes left behind when the entry script returns; either event fails that instance.

The session provides 4 CPUs, 16 GB of memory, and 12 hours of wall clock, with no network access.

The session and grading each have 10 GB of storage.

## How It Is Judged

The lab's evaluator computes mean row root-mean-square error:

`MRRMSE = (1/R) * sum_i sqrt((1/C) * sum_j (y_ij - p_ij)^2)`

Here R is the number of query rows, C is the number of coordinates, y is the true response, and p is your prediction. The evaluator computes each row's root-mean-square error, then averages the row errors, using float64 arithmetic. Lower is better.

The evaluator scores 14 sealed instances. It reports the arithmetic mean of their instance losses, giving every instance equal weight in the metric's own units. Sealed inputs and answers exist only in the grading container.

The evaluation service's failure score is 1000000. It assigns that score to missing or invalid output, a method failure, a timeout, or an instance with leftover processes. A failed build assigns the failure score to every instance. The evaluator caps valid losses at 1000000.

## Self-check

The computing service provides this command:

```sh
python3 /app/selfcheck.py rehearse
```

It builds the submission if needed, runs it on every practice instance under grading conditions, and uses the same reader, metric, limits, unprivileged account, and arithmetic mean aggregation. Its final line is a JSON object with key `score`. Use this smoke test and the practice answers to guide experiments; it is the practice score, and the graded score remains unseen while you work.