DEP remove scale_face function from lfw
@@ -17,7 +17,6 @@ from distutils.version import LooseVersion
import numpy as np
from .base import get_data_home, _fetch_remote, RemoteFileMetadata
-from ..utils import deprecated
from ..utils import Bunch
from ..utils._joblib import Memory
from ..utils import _joblib
@@ -65,29 +64,6 @@ TARGETS = (
)
-@deprecated('This function was deprecated in version 0.20 and will be removed '
- 'in 0.22.')
-def scale_face(face):
- """Scale back to 0-1 range in case of normalization for plotting.
-
- .. deprecated:: 0.20
- This function was deprecated in version 0.20 and will be removed in 0.22.
-
-
- Parameters
- ----------
- face : array_like
- The array to scale
-
- Returns
- -------
- array_like
- The scaled array
- """
- scaled = face - face.min()
- scaled /= scaled.max()
- return scaled
-
#
# Common private utilities for data fetching from the original LFW website
# local disk caching, and image decoding.
