예제 #1
0
def getListTopN():
	uID = request.forms.get('userID')
	N = request.forms.get('N')
	
	d = recommendMovies.mockupTopN(uID,int(N))
	
	return str(d)	
예제 #2
0
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)	
예제 #3
0
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)