title: Machine learning dataset label depending on more than one row
body: <p>I'm trying to label my dataset which consists of two columns representing power readings from two machines against time every second. If an activity happens at the first machine and then the second one I will have to label that as 1 or 2 if any other case occur it should be 0. I want to label this dataset in a way in which a machine learning algorithm would notice that the first machine power reading activity should occur before the second but the algorithm just predicts all the labels as zeros which deceives me by a very high results such as 99% accuracy because I label them as 1 or 2 after the activity in the second machine is over and in only one row so the number of 1s and 2s in the label is very low compared to that of the zeros. Is there any good way to label this dataset ?</p>