Moving this if statement that performs feature scaling outside the fold loop it's in would save some minor computation time.
if