Skip to content
Snippets Groups Projects
Commit 3c0fdae4 authored by Dominique Benielli's avatar Dominique Benielli
Browse files

init

parent fe8f42d0
Branches
Tags
No related merge requests found
Pipeline #4163 failed
Use Case Examples
-----------------
Use Case Examples on Digit
--------------------------
The following toy examples illustrate how the multimodal as usecase on digit dataset of sklearn
......@@ -3,5 +3,7 @@
=========
init file
=========
init file
"""
# -*- coding: utf-8 -*-
"""
============
Use Case MKL
============
=====================
Use Case MKL on digit
=====================
Use case for all classifier of multimodallearn MKL
multi class digit from sklearn, multivue
- vue 0 digit data (color of sklearn)
......@@ -42,10 +42,10 @@ if __name__ == '__main__':
fig = plt.figure(figsize=(12., 11.))
fig.suptitle("MKL : result" + str(result4), fontsize=16)
plot_subplot(X_train, y_train, y_pred44 ,0, (4, 1, 1), "train vue 0" )
plot_subplot(X_test, y_test,y_pred4 , 0, (4, 1, 2), "test vue 0" )
plot_subplot(X_test, y_test, y_pred4,1, (4, 1, 3), "test vue 1" )
plot_subplot(X_test, y_test,y_pred4, 2, (4, 1, 4), "test vue 2" )
plot_subplot(X_train, y_train, y_pred44 ,0, (4, 1, 1), "train vue 0 color" )
plot_subplot(X_test, y_test,y_pred4 , 0, (4, 1, 2), "test vue 0 color" )
plot_subplot(X_test, y_test, y_pred4,1, (4, 1, 3), "test vue 1 gradiant 0" )
plot_subplot(X_test, y_test,y_pred4, 2, (4, 1, 4), "test vue 2 gradiant 1" )
# plt.legend()
plt.show()
# -*- coding: utf-8 -*-
"""
================
Use Case of MVML
================
=========================
Use Case of MVML on digit
========================
Use case for all classifier of multimodallearn MVML
multi class digit from sklearn, multivue
......@@ -40,10 +40,10 @@ if __name__ == '__main__':
fig = plt.figure(figsize=(12., 11.))
fig.suptitle("MVML: result" + str(result1), fontsize=16)
plot_subplot(X_train, y_train, y_pred11
, 0, (4, 1, 1), "train vue 0" )
plot_subplot(X_test, y_test,y_pred1, 0, (4, 1, 2), "test vue 0" )
plot_subplot(X_test, y_test, y_pred1, 1, (4, 1, 3), "test vue 1" )
plot_subplot(X_test, y_test,y_pred1, 2, (4, 1, 4), "test vue 2" )
, 0, (4, 1, 1), "train vue 0 color" )
plot_subplot(X_test, y_test,y_pred1, 0, (4, 1, 2), "test vue 0 color" )
plot_subplot(X_test, y_test, y_pred1, 1, (4, 1, 3), "test vue 1 gradiant 0" )
plot_subplot(X_test, y_test,y_pred1, 2, (4, 1, 4), "test vue 2 gradiant 1" )
#plt.legend()
plt.show()
# -*- coding: utf-8 -*-
"""
================
Use Case MuCumBo
================
=========================
Use Case MuCumBo on digit
=========================
Use case for all classifier of multimodallearn MuCumBo
multi class digit from sklearn, multivue
......@@ -41,9 +41,9 @@ if __name__ == '__main__':
fig = plt.figure(figsize=(12., 11.))
fig.suptitle("MuCumbo: result" + str(result3), fontsize=16)
plot_subplot(X_train, y_train, y_pred33 ,0, (4, 1, 1), "train vue 0" )
plot_subplot(X_test, y_test,y_pred3 , 0, (4, 1, 2), "test vue 0" )
plot_subplot(X_test, y_test, y_pred3,1, (4, 1, 3), "test vue 1" )
plot_subplot(X_test, y_test,y_pred3, 2, (4, 1, 4), "test vue 2" )
plot_subplot(X_train, y_train, y_pred33 ,0, (4, 1, 1), "train vue 0 color" )
plot_subplot(X_test, y_test,y_pred3 , 0, (4, 1, 2), "test vue 0 color" )
plot_subplot(X_test, y_test, y_pred3,1, (4, 1, 3), "test vue 1 gradiant 0" )
plot_subplot(X_test, y_test,y_pred3, 2, (4, 1, 4), "test vue 2 gradiant 1" )
# plt.legend()
plt.show()
\ No newline at end of file
# -*- coding: utf-8 -*-
"""
==============
Use Case MumBo
==============
=======================
Use Case MumBo on digit
=======================
Use case for all classifier of multimodallearn MumBo
multi class digit from sklearn, multivue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment