Extended Data Fig. 3: Flow chart of the in-situ training.
From: Lithography-free reconfigurable integrated photonic processor

The initial pattern can be an arbitrary connection between the inputs and the outputs. In each epoch, the inputs and outputs related to all the samples in the dataset are measured. The pumping pattern is updated based on the measurements in the epoch until the accuracy reaches the target.