Don't conflate the Doppler effect with the Lorentz transformation.
If the train is half-way past you at the moment when you measure, then the clock at the front will be receding from you, while the clock at the rear is approaching you. The Doppler effect will cause your raw observation of the approaching clock's tick rate to be greater than your raw observation of the receding clock. But if you correct your observationobservations to account for the Doppler effect, then you should conclude that both tick rates should beactually are the same, and bothboth clocks will appear be slower than theto tick rate ofmore slowly than your own clock because of the Lorentz transformation.