コード例 #1
0
ファイル: data_loader.py プロジェクト: daiyuanlin256/deepchem
    def _get_shards(self, input_files, shard_size):
        """Defines a generator which returns data for each shard

    Parameters
    ----------
    input_files: list[str]
      List of filenames to process
    shard_size: int
      The size of a shard of data to process at a time.
    """
        return load_csv_files(input_files, shard_size)
コード例 #2
0
ファイル: data_loader.py プロジェクト: lpc-97/deepchem
  def _get_shards(self, input_files: List[str],
                  shard_size: Optional[int]) -> Iterator[pd.DataFrame]:
    """Defines a generator which returns data for each shard

    Parameters
    ----------
    input_files: List[str]
      List of filenames to process
    shard_size: int, optional
      The size of a shard of data to process at a time.

    Returns
    -------
    Iterator[pd.DataFrame]
      Iterator over shards
    """
    return load_csv_files(input_files, shard_size)
コード例 #3
0
ファイル: data_loader.py プロジェクト: daiyuanlin256/deepchem
 def _get_shards(self, input_files, shard_size):
     """Defines a generator which returns data for each shard"""
     return load_csv_files(input_files, shard_size)
コード例 #4
0
ファイル: data_loader.py プロジェクト: AhlamMD/deepchem
 def get_shards(self, input_files, shard_size):
   """Defines a generator which returns data for each shard"""
   return load_csv_files(input_files, shard_size)