def names()

in spotify_tensorflow/featran.py [0:0]


    def names(cls, settings_path, feature_splitter_fn=None):
        # type: (str, Callable[[Any], str]) -> Union[List[str], Dict[str, List[str]]]
        """
        Returns a list of Featran feature names.  Optionally the list of names
        can be split into a dictionary keyed by the feature_splitter_fn

        :param settings_path: Path to the Featran Settings JSON Directory
        :param feature_splitter_fn: Function to split feature name into a keyed dictionary
        :return: A List or dictionary of Featran Feature names
        """
        settings = cls.settings(settings_path)
        if feature_splitter_fn:
            return cls.__split_names(settings, feature_splitter_fn)
        else:
            return cls.__all_names(settings)