Artificial neural network states for nonadditive systems