Get 'x' lower/upper value, implement scale attribute of a given index before doing prediction