From 3c0fdae4d64789603a2821e0e8212e88f1ae0704 Mon Sep 17 00:00:00 2001 From: Dominique Benielli <dominique.benielli@lis-lab.fr> Date: Wed, 26 Feb 2020 16:16:33 +0100 Subject: [PATCH] init --- examples/usecase/README.txt | 4 ++-- examples/usecase/__init__.py | 2 ++ examples/usecase/plot_usecase_exampleMKL.py | 14 +++++++------- examples/usecase/plot_usecase_exampleMVML.py | 14 +++++++------- examples/usecase/plot_usecase_exampleMuCuBo.py | 14 +++++++------- examples/usecase/plot_usecase_exampleMumBo.py | 6 +++--- 6 files changed, 28 insertions(+), 26 deletions(-) diff --git a/examples/usecase/README.txt b/examples/usecase/README.txt index 5712728..4ac3534 100644 --- a/examples/usecase/README.txt +++ b/examples/usecase/README.txt @@ -1,6 +1,6 @@ -Use Case Examples ------------------ +Use Case Examples on Digit +-------------------------- The following toy examples illustrate how the multimodal as usecase on digit dataset of sklearn diff --git a/examples/usecase/__init__.py b/examples/usecase/__init__.py index e892bb5..0ac2ddf 100644 --- a/examples/usecase/__init__.py +++ b/examples/usecase/__init__.py @@ -3,5 +3,7 @@ ========= init file ========= +init file + """ diff --git a/examples/usecase/plot_usecase_exampleMKL.py b/examples/usecase/plot_usecase_exampleMKL.py index 77ecb76..ba5d540 100644 --- a/examples/usecase/plot_usecase_exampleMKL.py +++ b/examples/usecase/plot_usecase_exampleMKL.py @@ -1,8 +1,8 @@ # -*- 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() diff --git a/examples/usecase/plot_usecase_exampleMVML.py b/examples/usecase/plot_usecase_exampleMVML.py index 8f86a8b..b865862 100644 --- a/examples/usecase/plot_usecase_exampleMVML.py +++ b/examples/usecase/plot_usecase_exampleMVML.py @@ -1,8 +1,8 @@ # -*- 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() diff --git a/examples/usecase/plot_usecase_exampleMuCuBo.py b/examples/usecase/plot_usecase_exampleMuCuBo.py index fa7490a..42a7698 100644 --- a/examples/usecase/plot_usecase_exampleMuCuBo.py +++ b/examples/usecase/plot_usecase_exampleMuCuBo.py @@ -1,8 +1,8 @@ # -*- 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 diff --git a/examples/usecase/plot_usecase_exampleMumBo.py b/examples/usecase/plot_usecase_exampleMumBo.py index 76e4020..e3995c6 100644 --- a/examples/usecase/plot_usecase_exampleMumBo.py +++ b/examples/usecase/plot_usecase_exampleMumBo.py @@ -1,8 +1,8 @@ # -*- 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 -- GitLab