From 1ee965e32c6678ca063d853d80d7bdeae0ab9734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Thu, 23 Jul 2015 17:48:38 -0400 Subject: Add Train/Valid/Test set --- data/cuts/tvt_test.py | 9 +++++++++ data/cuts/tvt_valid.py | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 data/cuts/tvt_test.py create mode 100644 data/cuts/tvt_valid.py (limited to 'data/cuts') diff --git a/data/cuts/tvt_test.py b/data/cuts/tvt_test.py new file mode 100644 index 0000000..cd97a2b --- /dev/null +++ b/data/cuts/tvt_test.py @@ -0,0 +1,9 @@ +import random + +begin = 1372636853 +end = 1404172787 + +random.seed(42) +cuts = [] +for i in range(500): + cuts.append(random.randrange(begin, end)) diff --git a/data/cuts/tvt_valid.py b/data/cuts/tvt_valid.py new file mode 100644 index 0000000..c5bb828 --- /dev/null +++ b/data/cuts/tvt_valid.py @@ -0,0 +1,9 @@ +import random + +begin = 1372636853 +end = 1404172787 + +random.seed(1337) +cuts = [] +for i in range(500): + cuts.append(random.randrange(begin, end)) -- cgit v1.2.3