fix(test): fix broken CSVDataset
test
This commit is contained in:
parent
99be965581
commit
c1d7cfee8f
@ -54,6 +54,8 @@ class TestCSVDataset(unittest.TestCase):
|
|||||||
data = np.random.rand(100, 4)
|
data = np.random.rand(100, 4)
|
||||||
targets = np.random.randint(2, size=(100, 1))
|
targets = np.random.randint(2, size=(100, 1))
|
||||||
arr = np.hstack([data, targets])
|
arr = np.hstack([data, targets])
|
||||||
|
if not os.path.exists("./artifacts"):
|
||||||
|
os.mkdir("./artifacts")
|
||||||
np.savetxt("./artifacts/test.csv", arr, delimiter=",")
|
np.savetxt("./artifacts/test.csv", arr, delimiter=",")
|
||||||
|
|
||||||
def test_len(self):
|
def test_len(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user