Frequency ratio of two optical clock transitions in $^{171} $ Yb $^+