Hi all,
I have a question. If I have a DataSet DataSet<Tuple3<Integer, Integer, Double>> ds and I want to normalize all values (at position 2) in it by the maximum of the DataSet (ds.aggregate(Aggregations.MAX, 2)). How do I tackle that? If I use the cross operator my result changes every time I run the program (see code below) Any suggestions? Thanks in advance! Lydia ds.cross(ds.aggregate(Aggregations.MAX, 2)).map(new normalizeByMax()); public static final class normalizeByMax implements |
Hi Lydia, I tried to reproduce your problem but I couldn't. Can it be that you have somewhere a non deterministic operation in your program or do you read the data from a source with varying data? Maybe you could send us a compilable and complete program which reproduces your problem. Cheers, Till On Tue, Mar 22, 2016 at 2:21 PM, Lydia Ickler <[hidden email]> wrote:
|
Hi Till,
maybe it is doing so because I rewrite the ds in the next step again and then the working steps get mixed? I am reading the data from a local .csv file with readMatrix(env, „filename") See code below. Best regards, Lydia //read input file public static DataSource<Tuple3<Integer, Integer, Double>> readMatrix(ExecutionEnvironment env,
|
From the code extract I cannot tell what could be wrong because the code looks ok. If On Tue, Mar 22, 2016 at 3:15 PM, Lydia Ickler <[hidden email]> wrote:
|
Sorry I was not clear:
I meant the initial DataSet is changing. Not the ds. :)
|
Ah ok, in the case of Cheers, On Tue, Mar 22, 2016 at 3:31 PM, Lydia Ickler <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |