Simulating disordered quantum Ising chains via dense and sparse restricted Boltzmann machines