Skip to content

Instantly share code, notes, and snippets.

View jeanfeydy's full-sized avatar

Jean Feydy jeanfeydy

View GitHub Profile
# OT solution classes
class OTResults(): # class for exact ot and small pre-computed problems
def __init__(self,duals,loss,loss_linear,primal=None,log=None):
self.duals=duals # dual solutions
self.primal=primal # primal solution
self.log=log# log stuff from the solver
self.loss=loss# total loss (with entropy if reg)