May-13-2022, 05:14 PM
(May-13-2022, 04:55 PM)deanhystad Wrote: Is there a pattern to the statements? It looks like they will either be "No change" or "Change x element to y". How can you convert "x" and "y" to indices?
Yes, the pattern could only consist of 'no change' or the choice of changing a specific element to 1 and all others to 0:
Input should be rplaced by :
'No change' no change
'Change first element to 1', [1, 0, 0, 0]
'Change second element to 1', [0, 1, 0, 0]
'Change third element to 1', [0, 0, 1, 0]
'Change fourth element to 1' [0, 0, 0, 1]