add errorRate for BP.js.
When rate = 0.5, iris has good result.