def setSiteDataCost(self, site, label, e): """Set site data cost, dataCost(site, label) = e. e should be of type int or float (python primitive type).""" if site >= self.numSites or site < 0 or label < 0 or label >= self.numLabels: raise IndexOutOfBoundError() _cgco.gcoSetSiteDataCost(self.handle, np.intc(site), np.intc(label), self._convertUnaryTerm(e))