package Ġcom . m cc or by . phot ol abel ler . trainer Ċ Ċ import Ġcom . m cc or by . phot ol abel ler . config . Shared Config Ċ import Ġcom . m cc or by . phot ol abel ler . inter actor . Train Ċ import Ġcom . m cc or by . phot ol abel ler . inter actor . Train Params Ċ Ċ class ĠTraining Presenter ( private Ġval Ġtrain : ĠTrain , Ġprivate Ġval Ġconfig : ĠShared Config ) Ġ{ ĊĊĠĠĠ Ġprivate Ġvar Ġview : ĠTraining View ? Ġ= Ġnull ĊĊĠĠĠ Ġfun Ġtrain () Ġ{ ĊĠĠĠĠĠĠĠ Ġview ?. onStart Training ( config ) ĊĠĠĠĠĠĠĠ Ġtrain . execute ({ view ?. show Training Stats ( it )}, ĠTrain Params ( config . max Samples , Ġconfig . max Epoch s )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġattach ( view : ĠTraining View ) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . view Ġ= Ġview ĊĠĠĠ Ġ} Ċ }