This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |