trainRPOptimiser and traningFNPicker

Finish the trainRPOptimiser and corresponding part in trainingFNPicker.