def run_score_glove(inputData): testData, num_components, glove_window, epochs, highFreq, verbose = inputData sys.stderr.write("Running glove with epochs " + str(epochs) + "\n" ) gloveResults = events.glove(testData.transactionsList, num_components, glove_window, epochs) if verbose: if (highFreq): filename="glove"+str(epochs)+"hifreq.results" else: filename="glove"+str(epochs)+".results" writeResults(gloveResults,filename) return scoreResults(testData.counter, gloveResults, epochs)
def run_score_glove(inputData): testData, num_components, glove_window, epochs, highFreq, verbose = inputData sys.stderr.write("Running glove with epochs " + str(epochs) + "\n") gloveResults = events.glove( testData.transactionsList, num_components, glove_window, epochs) if verbose: if (highFreq): filename = "glove" + str(epochs) + "hifreq.results" else: filename = "glove" + str(epochs) + ".results" writeResults(gloveResults, filename) return scoreResults(testData.counter, gloveResults, epochs)
def glove_substep(gen_windows, *args, **kwargs): logger.info("Running glove/cluster algorithm... (%s)", kwargs) gen_events = events.glove(gen_windows, *args, **kwargs) return gen_events