Yang–Baxter deformation as an O(d,d) transformation