The basic principle behind Machine learning is to use past mistakes to figure out the right path. That’s how our mind also works when it comes to the people who have hurt us. We pretend that we are over it, but deep down our minds are still storing their mistakes and our future actions will be based on this data, all this to avoid getting hurt by them in the future.