Commit 2c6d0800 authored by 段英荣's avatar 段英荣

modify linucb

parent ed2ec085
......@@ -61,7 +61,7 @@ class LinUCB:
art_max = tag_list[np.argmax(np.dot(xaT, theta_tmp) + cls.alpha * np.sqrt(np.dot(np.dot(xaT, AaI_tmp), xa)))]
return [art_max]
return [int(art_max)]
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment