Physics-Based And Data-Driven Computational Models Of Inelastic Deformations