From a Huffington Post article, 5 Common Misconceptions About the Bible:
Correction #5
The character “Yahweh” in the Hebrew Bible should not be confused with the god of western theological speculation (generally referred to as “God”). The attributes assigned to “God” by post-biblical theologians — such as omniscience and immutability — are simply not attributes possessed by the character Yahweh as drawn in biblical narratives. Indeed, on several occasions Yahweh is explicitly described as changing his mind, because when it comes to human beings his learning curve is steep. Humans have free will; they act in ways that surprise him and he must change tack and respond. One of the greatest challenges for modern readers of the Hebrew Bible is to allow the text to mean what it says, when what is says flies in the face of doctrines that emerged centuries later from philosophical debates about the abstract category “God.”