Score-Based Explanations in Data Management and Machine Learning