Is there a way to weight instances based upon the values of a feature?
Try reading up on Loss/ Cost functions. Samples that are closer to your model will be assigned a smaller cost while others a higher one.

https://en.wikipedia.org/wiki/Loss_function