Monitor

tinder.kaggle.split_csv_by_lines(csv_path, dests, p, header=True)[source]

Split a csv file by lines.

Example

split_csv_by_lines(‘train.csv’, dests=[‘data/train.csv’, ‘data/val.csv’], p=[0.8,0.2])

Parameters
  • {[type]} -- [description] (csv_path) –

  • {list} -- a list of sampling probabilities (p) –

Keyword Arguments
  • {[type]} -- [description] (default (dests) – {None})

  • {bool} -- [description] (default (header) – {True})