Ejemplo n.º 1
0
from datetime import datetime

import preprocess5

startIdx = 15000
endIdx = 19999

print("startIdx:", startIdx, "endIdx", endIdx)
print(" Time start: " + str(datetime.now()))
headerName = ['Id', 'feature5', 'feature6', 'feature7', 'feature8', 'feature9']
pathString = "../../dataset/train"
train_features5 = preprocess5.preprocessForAll5('../../dataset/train.csv',
                                                pathString, startIdx, endIdx)
preprocess5.writeToCSV('../../output/train_features5_part4.csv', headerName,
                       train_features5)
Ejemplo n.º 2
0
from datetime import datetime

import preprocess5

startIdx = 0
endIdx = 5000

print("startIdx:", startIdx, "endIdx", endIdx)
print(" Time start: " + str(datetime.now()))
headerName = ['Id', 'feature5', 'feature6', 'feature7', 'feature8', 'feature9']
pathString = "../../dataset/test"
train_features5 = preprocess5.preprocessForAll5(
    '../../dataset/sample_submission.csv', pathString, startIdx, endIdx)
preprocess5.writeToCSV('../../output/test_features5_part1.csv', headerName,
                       train_features5)