|
Algorithm 1: Model Performance Evaluation |
Input: Denote as the predicted cell number of the target .
Output: Denote as model evaluation score with the target .
: the target index
: the cell index
: the index of data samples
: the cell index set of actual target presence and neighboring cells
: the number of neighboring cells (i.e., ) |
-
1:
▶ Initialize:
-
2:
-
3:
▷ Maximum target number .
-
4:
▷ The evaluation scores.
-
5:
-
6:
▶ Start:
-
7:
While < the number of data records for model prediction
-
8:
▶ Initial Sequence (target in location )
-
9:
for
-
10:
for
)
-
11:
if is equal to
-
12:
-
13:
else if is equal to
-
14:
-
15:
else
-
16:
-
17:
end if
-
18:
end for
-
19:
end for
-
20:
▶ Permutation Invariant (target in location )
-
21:
▷ c
and
-
22:
for
-
23:
if and do not increase
-
24:
for
-
25:
if is equal to
-
26:
-
27:
else if is equal to
-
28:
-
29:
else
-
30:
-
31:
end if
-
32:
end for
-
33:
end if
-
34:
end for
-
35:
-
36:
end while
|
| “▶” is the comment of main step and “▷” is the comment of note. |