Data scientists highlight how machine learning predicted Spain’s defensive solidity.