Changed the predictor_extractor.py file, adding clarity and integrating previous changes.