def _get_feature(self, input_dir):
    ' Get Feature\n\n        Get network feature and labels from VGG16 model.\n\n        Parameters\n        ----------\n        input_dir : str\n            Input directory\n\n        Returns\n        -------\n        tuple\n            VGG16 bottleneck feature, class labels\n\n        '
    generator = self._load_generator(input_dir, batch_size=self._batch_size_top)
    labels = generator.classes[:(generator.steps * self._batch_size_top)]
    return (self._vgg16_model.predict_generator(generator, generator.steps), labels)
Get Feature

Get network feature and labels from VGG16 model.

Parameters
----------
input_dir : str
    Input directory

Returns
-------
tuple
    VGG16 bottleneck feature, class labels
def _get_feature(self, input_dir):
    ' Get Feature\n\n        Get network feature and labels from VGG16 model.\n\n        Parameters\n        ----------\n        input_dir : str\n            Input directory\n\n        Returns\n        -------\n        tuple\n            VGG16 bottleneck feature, class labels\n\n        '
    generator = self._load_generator(input_dir, batch_size=self._batch_size_top)
    labels = generator.classes[:(generator.steps * self._batch_size_top)]
    return (self._vgg16_model.predict_generator(generator, generator.steps), labels)