model/load_data.py
def _get_file_level_signals_dict(dates, repo):
        """
        Load the file level features given repo name and the date range.

        Args:
            dates: A list of dates.
            repo: A str holds the repo name

        Returns:
            A dict holds the file level features of given repo. Keys are the
            dates and values are the dataframes.
        """
        file_level_signals_dict = defaultdict(pd.DataFrame)
        for date in dates:
            date_str = date.strftime(format="%Y_%m_%d")
            file_name = '../data/%s_%s_features.csv' % (repo, date_str)
            file_level_signals_dict[date_str] = pd.read_csv(file_name)
        return file_level_signals_dict

        Load the file level features given repo name and the date range.

        Args:
            dates: A list of dates.
            repo: A str holds the repo name

        Returns:
            A dict holds the file level features of given repo. Keys are the
            dates and values are the dataframes.
        
Load the file level features given repo name and the date range.
Load the file level features given repo name and the date range .
def _get_file_level_signals_dict(dates, repo):
        file_level_signals_dict = defaultdict(pd.DataFrame)
        for date in dates:
            date_str = date.strftime(format="%Y_%m_%d")
            file_name = '../data/%s_%s_features.csv' % (repo, date_str)
            file_level_signals_dict[date_str] = pd.read_csv(file_name)
        return file_level_signals_dict
def _get_file_level_signals_dict ( dates , repo ) : file_level_signals_dict = defaultdict ( pd . DataFrame ) for date in dates : date_str = date . strftime ( format = "%Y_%m_%d" ) file_name = '../data/%s_%s_features.csv' % ( repo , date_str ) file_level_signals_dict [ date_str ] = pd . read_csv ( file_name ) return file_level_signals_dict
Load the file level features given repo name and the date range.
Load the file level features given repo name and the date range .
"""
        Load the file level features given repo name and the date range.

        Args:
            dates: A list of dates.
            repo: A str holds the repo name

        Returns:
            A dict holds the file level features of given repo. Keys are the
            dates and values are the dataframes.
        """
A dict holds the file level features of given repo. Keys are the
dates and values are the dataframes.
A dict holds the file level features of given repo . Keys are the dates and values are the dataframes .
dates
A list of dates.
A list of dates .
repo
A str holds the repo name
A str holds the repo name