A couple of dumb utilities in ML