Restricted Boltzmann Machine, recent advances and mean-field theory