From ecf1a02cb9b4fe1bffa04658223f9447fbf80710 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Tue, 11 May 2021 14:54:30 +0200
Subject: [PATCH] deprecate bob.learn.libsvm and bob.learn.mlp

---
 conda/meta.yaml      | 2 --
 doc/index.rst        | 2 --
 doc/links.rst        | 1 -
 doc/packages.rst     | 2 --
 doc/readme_index.rst | 2 --
 doc/tutorial.rst     | 6 ------
 packages.txt         | 2 --
 7 files changed, 17 deletions(-)

diff --git a/conda/meta.yaml b/conda/meta.yaml
index e3f7e47..1c216c7 100644
--- a/conda/meta.yaml
+++ b/conda/meta.yaml
@@ -35,8 +35,6 @@ requirements:
     - bob.ip.gabor
     - bob.learn.activation
     - bob.learn.linear
-    - bob.learn.libsvm
-    - bob.learn.mlp
     - bob.db.iris
     - bob.learn.em
     - bob.db.mnist
diff --git a/doc/index.rst b/doc/index.rst
index e6a1146..ce9cbac 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -61,9 +61,7 @@ Index of all packages
    bob.ip.qualitymeasure <bob/bob.ip.qualitymeasure/doc/index.rst>
    bob.learn.activation <bob/bob.learn.activation/doc/index.rst>
    bob.learn.em <bob/bob.learn.em/doc/index.rst>
-   bob.learn.libsvm <bob/bob.learn.libsvm/doc/index.rst>
    bob.learn.linear <bob/bob.learn.linear/doc/index.rst>
-   bob.learn.mlp <bob/bob.learn.mlp/doc/index.rst>
    bob.learn.pytorch <bob/bob.learn.pytorch/doc/index.rst>
    bob.learn.tensorflow <bob/bob.learn.tensorflow/doc/index.rst>
    bob.math <bob/bob.math/doc/index.rst>
diff --git a/doc/links.rst b/doc/links.rst
index 9a37bd3..f92e8c4 100644
--- a/doc/links.rst
+++ b/doc/links.rst
@@ -27,7 +27,6 @@
 .. _libjpeg: http://libjpeg.sourceforge.net/
 .. _libpng license: http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
 .. _libpng: http://libpng.org/pub/png/libpng.html
-.. _LIBSVM: http://www.csie.ntu.edu.tw/~cjlin/libsvm/
 .. _libtiff: http://www.remotesensing.org/libtiff/
 .. _mailing list: https://www.idiap.ch/software/bob/discuss
 .. _MatIO: http://matio.sourceforge.net
diff --git a/doc/packages.rst b/doc/packages.rst
index ce385de..3a54465 100644
--- a/doc/packages.rst
+++ b/doc/packages.rst
@@ -41,9 +41,7 @@ Machine Learning
 
 * :ref:`bob.measure`
 * :ref:`bob.learn.linear`
-* :ref:`bob.learn.mlp`
 * :ref:`bob.learn.activation`
-* :ref:`bob.learn.libsvm`
 * :ref:`bob.learn.em`
 * :ref:`bob.learn.tensorflow`
 * :ref:`bob.learn.pytorch`
diff --git a/doc/readme_index.rst b/doc/readme_index.rst
index 3c30c96..cefa641 100644
--- a/doc/readme_index.rst
+++ b/doc/readme_index.rst
@@ -36,9 +36,7 @@ README of all Packages
    bob.ip.tensorflow_extractor <bob/bob.ip.tensorflow_extractor/README.rst>
    bob.learn.activation <bob/bob.learn.activation/README.rst>
    bob.learn.em <bob/bob.learn.em/README.rst>
-   bob.learn.libsvm <bob/bob.learn.libsvm/README.rst>
    bob.learn.linear <bob/bob.learn.linear/README.rst>
-   bob.learn.mlp <bob/bob.learn.mlp/README.rst>
    bob.learn.pytorch <bob/bob.learn.pytorch/README.rst>
    bob.learn.tensorflow <bob/bob.learn.tensorflow/README.rst>
    bob.math <bob/bob.math/README.rst>
diff --git a/doc/tutorial.rst b/doc/tutorial.rst
index e5d1287..aa86ba7 100644
--- a/doc/tutorial.rst
+++ b/doc/tutorial.rst
@@ -207,12 +207,6 @@ Here, we examine a few of the machines and trainers available in Bob.
 -  For a start, you should read the :ref:`bob.learn.linear`,
    which is able to perform subspace projections like PCA and LDA.
 
--  Multi-Layer Perceptron (MLP) Machines and Trainers are provided within the
-   :ref:`bob.learn.mlp` package.
-
--  :ref:`bob.learn.libsvm` are provided though a bridge to
-   `LibSVM`_.
-
 -  Generating strong classifiers by Boosting Strong Classifiers
    weak classifiers is provided by :ref:`bob.learn.boosting`.
 
diff --git a/packages.txt b/packages.txt
index 73e52d9..2d3e4fc 100644
--- a/packages.txt
+++ b/packages.txt
@@ -15,9 +15,7 @@ bob/bob.ip.base
 bob/bob.ip.color
 bob/bob.ip.gabor
 bob/bob.learn.activation
-bob/bob.learn.libsvm
 bob/bob.learn.linear
-bob/bob.learn.mlp
 bob/bob.db.iris
 bob/bob.learn.em
 bob/bob.db.mnist
-- 
GitLab