def _get_features(self):
    ' Get Features\n\n        Get the network (bottleneck) features from the VGG16 model.\n\n        '
    self._vgg16_model = self._build_vgg16_model()
    for (key, value) in self._features.items():
        (bot_feat, labels) = self._get_feature(value['dir'])
        if self._save_bottleneck:
            self._save_data(bot_feat, key, self._bottleneck_file)
        if self._save_labels:
            self._save_data(labels, key, self._labels_file)
        value['bottleneck'] = bot_feat
        value['labels'] = labels
Get Features

Get the network (bottleneck) features from the VGG16 model.
def _get_features(self):
    ' Get Features\n\n        Get the network (bottleneck) features from the VGG16 model.\n\n        '
    self._vgg16_model = self._build_vgg16_model()
    for (key, value) in self._features.items():
        (bot_feat, labels) = self._get_feature(value['dir'])
        if self._save_bottleneck:
            self._save_data(bot_feat, key, self._bottleneck_file)
        if self._save_labels:
            self._save_data(labels, key, self._labels_file)
        value['bottleneck'] = bot_feat
        value['labels'] = labels