Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ mat2im
Function
mat2im
examples/domain-adaptation/plot_otda_linear_mapping.py:109–111 ·
view source on GitHub ↗
Converts back a matrix to an image
(X, shape)
Source
from the content-addressed store, hash-verified
107
108
109
def
mat2im(X, shape):
110
""
"Converts back a matrix to an image"
""
111
return
X.reshape(shape)
112
113
114
def
minmax(img):
Callers
1
plot_otda_linear_mapping.py
File · 0.70
Calls
1
reshape
Method · 0.45
Tested by
no test coverage detected