Commit f931776a authored by 段英荣's avatar 段英荣

Merge branch 'linUCB' into 'master'

modify linucb

See merge request alpha/physical!133
parents 5192412e 2c6d0800
......@@ -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