Giter Club home page Giter Club logo

coot's Introduction

COOT

Python3 implementation of the paper CO-Optimal Transport (NeurIPS 2020)

CO-Optimal Transport (COOT) is an Optimal Transport problem between measures whose supports do not necessarily live in the same metric space. It aims to simultaneously optimize two transport maps between both samples and features of two datasets with possibly different number of rows and columns.

Feel free to ask if any question.

If you use this toolbox in your research and find it useful, please cite COOT using the following bibtex reference:

@incollection{coot_2020,
title = {CO-Optimal Transport},
author = {Redko, Ievgen, Vayer, Titouan, Flamary, R\'{e}mi and Courty, Nicolas},
booktitle = {Advances in Neural Information Processing Systems 33},
year = {2020}
}

Prerequisites

What is included ?

  • The main function that computes the COOT problem between two datasets in the code folder (file cot.py)

  • Demo notebooks:

  • Code to repoduce results of the paper in the expe folder.

Authors

coot's People

Contributors

rflamary avatar tvayer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

coot's Issues

Error with compute cost matrix when reproducing HDA

Dear Authors,

I am trying to run the HDA script on my own dataset. The error comes when I run this code:
M_lin = compute_cost_matrix(Ty,Sy_ss,v=100)
and compute_cost_matrix is defined as:

M=ot.dist(ys.reshape(-1,1),yt.reshape(-1,1),metric=comp_(v))
return M

Then it will report the following:

~/test/lib/python3.7/site-packages/ot/utils.py in dist(x1, x2, metric, p, w)
    226             raise NotImplementedError()
    227         else:
--> 228             if metric.endswith("minkowski"):
    229                 return cdist(x1, x2, metric=metric, p=p, w=w)
    230             return cdist(x1, x2, metric=metric, w=w)

AttributeError: 'function' object has no attribute 'endswith'

On my local computer I try to edit the utils.py to avoid this error, but I wonder if there is a way to solve that when wrote the script.

Thank you very much for your attention!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.