Text this: Improving neural network training using dynamic learning rate schedule for PINNs and image classification