I have a list of substrings e.g. vv=['Generating train and test indices for 5-fold validation', 'Performing fold number', 'Train the classifier', 'Test the classifier',' Number of elements in metavisit_suicide_prob']
I need to remove all the lines from a file where the line has any of these substrings. e.g. if a line is 'Performing fold number 4', it should be removed. How to do this?