Help with findgroups/splitapply, and general deep learning help.
이전 댓글 표시
Hi All,
I am trying to use findgroups, and splitapply to organise a table into a cellarray in a certain way, but I am getting some issues. One of the issues is that the number of groups returned isn't what I am expecting, i.e. the number of uniques in group 1, and the number of uniques in group 2. The file is attached. What the end goal is, is having a cellarray, with the trade dates going down, and the EFAs going across. When I combine, just originally, it isn't dividable by either the trade dates, or the number of unique EFA. The code I used originally is this:
G=findgroups( dateshift(FCTable.tradeDate,'start','day'), categorical(FCTable.EFA));
xAll = splitapply(@(x) {x} , FCTable{:,[2:7,10:13]} , G);
The end goal is for use in Deep Learning, as I originally have a model that does predictions for sequence to label classification for trade dates, however, I want to have the individual blocks included as well. So if there's any hints regarding this as well - please let me know. I'm assuming I will have to combine LSTM's, but I'm not sure. i.e. for tomorrow, there will be a prediction made for each EFA (time period basically) of the trade date.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Parallel and Cloud에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!