Machine learning can help accurately predict clinical outcomes in patients with heart problems