Embedding sample points uncertainty measures in learning algorithms