File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ USER kx
43
43
44
44
RUN . /opt/conda/etc/profile.d/conda.sh \
45
45
&& conda activate kx \
46
- && pip install pip==9.0.1 \
46
+ && conda install python=3.8 \
47
+ && pip install pip==21.0.1 \
47
48
&& pip install -r /opt/kx/ml/requirements.txt \
48
49
&& conda clean -y --all
49
50
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ fresh.feat.aggAutoCorr:{[data]
35
35
n : count data ;
36
36
autoCorrFunc : $ [(abs [var data ]<1e-10 )| 1 =n;
37
37
0 ;
38
- 1 _ fresh .i.acf [data ;` unbiased pykw 1b ;`fft pykw n>1250 ]`
38
+ 1 _ fresh .i.acf [data ;$ [ .ml.stats_break ; `adjusted ; ` unbiased] pykw 1b ;`fft pykw n>1250 ]`
39
39
];
40
40
`mean`variance`median`dev ! (avg ;var ;med ;dev )@\: autoCorrFunc
41
41
}
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ numpy :.p.import`numpy
11
11
pyStats : .p.import `scipy.stats
12
12
signal : .p.import `scipy.signal
13
13
stattools : .p.import `statsmodels.tsa.stattools
14
+ stats_ver : "F" $ "." vs (.p.import `statsmodels )[`:__version__ ]`
15
+ stats_break : $ [((stats_ver [0 ]=0 )&stats_ver [1 ]>=12 )| stats_ver [0 ]>0 ;1b ;0b ]
14
16
15
17
// @private
16
18
// @kind function
You can’t perform that action at this time.
0 commit comments