An ensemble scheme for network inference from cascades