summaryrefslogtreecommitdiff
path: root/ot/gpu
diff options
context:
space:
mode:
authorLeo gautheron <gautheron@iv-cm-359.creatis.insa-lyon.fr>2017-04-21 12:38:39 +0200
committerLeo gautheron <gautheron@iv-cm-359.creatis.insa-lyon.fr>2017-04-21 12:38:39 +0200
commit8fc74ed792cda0fc0073dab218f7fdc08bf3c1ba (patch)
tree10ac2b59f87643fd39bb10d7cede329330a84245 /ot/gpu
parentbd325a391aa5156faec0446c455be1f8f94eb80b (diff)
performance improvement sinkhorn lpl1
- instead of updating individually for each target examples, update for all target examples at once using numpy functions. This allows for a faster computation (for me, divided by 4 on 3000*100 random matricies and random labels in [0,1]). - if I understoud correctly, a value of -1 in the array labels_a meant that we didn't have a label for this example. But in machine learning, we often encounter the binary case where we say we have the positive class (+1) and negative class (-1); thus with a dataset like this, the algorithm wouldn't work as expected. I replaced the default value for 'no label' to '-99' instead of '-1', and I added a parameter to modify it.
Diffstat (limited to 'ot/gpu')
0 files changed, 0 insertions, 0 deletions