broadcasting arguments is messing with binariseCategorical
funpack -v 41270,41280 -apr 41270 "binariseCategorical(take=41280)" out.tsv icd.csv
produces
41270-0.T0290 41270-0.W604 41270-0.Y619 41270-0.Z384
0 2126-10-13
1 2077-02-02
2 2113-04-25 2113-04-25
3 2171-02-19
4 2139-03-24
5 2171-02-19
6 1976-09-06 2151-02-11
7 2007-03-14
8 2019-02-14
9 2113-04-25
but funpack -v 41270,41280 -apr 41270 "binariseCategorical(broadcast_take=41280)" out.tsv icd.csv
produces:
41280-0.0 41280-0.1 41280-0.2 41270-0.T0290 41270-0.W604 41270-0.Y619 41270-0.Z384
0 2126-10-13 2151-02-11 1 0 0 0
1 2077-02-02 2019-02-14 0 0 1 0
2 2113-04-25 2113-04-25 1 0 0 1
3 2171-02-19 0 0 1 0
4 2139-03-24 1976-09-06 0 0 0 1
5 2171-02-19 0 1 0 0
6 2151-02-11 2196-09-16 1976-09-06 1 1 0 0
7 2007-03-14 1 0 0 0
8 2019-02-14 1 0 0 0
9 2113-04-25 0 0 1 0
(also note that replaceTake
is not applied in the latter case)
(also, when take
is used, you must specify -v41280
- variable import detection is not working with regular take
arg)
Edited by Paul McCarthy