Systemic risk in financial networks: a data-driven machine learning analysis