def getListTopN(): uID = request.forms.get('userID') N = request.forms.get('N') d = recommendMovies.mockupTopN(uID,int(N)) return str(d)
def getRequestForRecSys(): functionName = request.forms.get('fName') rez = request.forms.get('clientID') rez = str(rez) + 'blabla' if functionName == 'getTopNItems': rez = recommendMovies.mockupTopN(request.forms.get('userID'),int(request.forms.get('N'))) elif functionName == 'getRatingPrediction': rez = calculateMF.mockupPredict(request.forms.get('userID'), request.forms.get('itemID')) else: rez = 'No function!!' return str(rez)
def getRequestForRecSys(): functionName = request.forms.get('fName') rez = request.forms.get('clientID') rez = str(rez) + 'blabla' if functionName == 'getTopNItems': rez = recommendMovies.mockupTopN(request.forms.get('userID'), int(request.forms.get('N'))) elif functionName == 'getRatingPrediction': rez = calculateMF.mockupPredict(request.forms.get('userID'), request.forms.get('itemID')) else: rez = 'No function!!' return str(rez)