def calcPredictionRatio(preds1,preds2):
	preds1_percentage = float(preds1)/float(len(querymatrix1))
	preds2_percentage = float(preds2)/float(2000000)
	if preds1 == 0 and preds2 == 0: return None
	if preds1 == 0: return 999.0, round(preds1_percentage,3), round(preds2_percentage,3)
	if preds2 == 0: return 0.0, round(preds1_percentage,3), round(preds2_percentage,3)
	return round(preds2_percentage/preds1_percentage,3), round(preds1_percentage,3), round(preds2_percentage,3)