In addition, according to the first aspect of the present invention, when a relative positional relationship between the neural network device and the environment such as a geometric relationship between the device and the environment, a degree of adaptability of the device to the environment, or a response of the device to an external stimulus is acquired by learning, the external stimulus and th