Loss Functions for the Risk Assessment of Residential Buildings | Synapse