def preprocess(fileName, train=True):
    df = dm.file2Dataframe(fileName)
    inputArr, outputArr = dm.processDataframeForNP(df, train)
    inputFileName, outputFileName = dm.makeFileName(fileName)
    
    if train:
        dm.save(outputFileName, outputArr)
        
    dm.save(inputFileName, inputArr)
    
    return inputArr, outputArr
def saveModelAndScores(modelFileName, stdModel, statisticsFileName, scores):
  dm.save(modelFileName, stdModel)
  dm.save(statisticsFileName, scores.mean())
def saveModelAndScores(modelFileName, generatedModel, statisticsFileName, scores):
  dm.save(modelFileName, generatedModel)
  dm.save(statisticsFileName, scores)