Commit 469b146
authored
Remove hard-coded sigmoid for voting ensemble method in Auto3DSeg (#5734)
Signed-off-by: Mingxin Zheng
<18563433+mingxin-zheng@users.noreply.github.com>
Fixes item 3 and 5 in #5564.
### Description
The `vote` method in `ensemble_pred` currently does not work for under
sigmoid mode, because the function overrides the argument to False
before the `VoteEnsemble`.
Also, if the user only trains a small number of algorithm (1 fold for 1
algo) and forgets the update the `n_best` (default is 5) in
`AlgoEnsembleBestN` , instead of throwing an error, the fix will
automatically use all available algos after posting a warning.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [x] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
Signed-off-by: Mingxin Zheng <18563433+mingxin-zheng@users.noreply.github.com>1 parent a09d2a2 commit 469b146
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
197 | | - | |
| 200 | + | |
| 201 | + | |
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
| |||
0 commit comments