diff options
author | Leo gautheron <gautheron@iv-cm-359.creatis.insa-lyon.fr> | 2017-04-21 12:38:39 +0200 |
---|---|---|
committer | Leo gautheron <gautheron@iv-cm-359.creatis.insa-lyon.fr> | 2017-04-21 12:38:39 +0200 |
commit | 8fc74ed792cda0fc0073dab218f7fdc08bf3c1ba (patch) | |
tree | 10ac2b59f87643fd39bb10d7cede329330a84245 /examples/Demo_Image_ColorAdaptation_mapping.ipynb | |
parent | bd325a391aa5156faec0446c455be1f8f94eb80b (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 'examples/Demo_Image_ColorAdaptation_mapping.ipynb')
0 files changed, 0 insertions, 0 deletions