I Have a general question - how to preprocess data in Orange. E.g. I want to do something with each row value of some feature. How can I do this visually? And how can I do this via Python Script?
So far, I have only some ideas how to do this via python script:
Here is my code:
minimum = min(list(map(lambda row: row, in_data))).value from copy import deepcopy out_data = deepcopy(in_data) for row in out_data: row.value = row.value - minimum
But it fails, because seems like the Value object is immutable... Is there any way to create my own Value object with new data, and then do something like:
out_data = list(map(lambda row: Value(row.variable, [row.value - minimum]) + row[1:], in_data))
I am also interested in a "Visual widget-based" alternative, if it exists...