Machine learning for flux regression in discrete fracture networks