Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias Import alias Import alias Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad NameLoad body Return BinOpAdd NameLoad TupleLoad BinOpSub NameLoad NameLoad orelse Return TupleLoad NameLoad BinOpSub NameLoad NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore BinOpMult Num NameLoad Assign NameStore ListLoad Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str ListLoad For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Str SubscriptLoad NameLoad Index Str BinOpDiv Num Call NameLoad NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore ListLoad For NameStore Call NameLoad Num body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr BinOpPow Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Dict Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Print Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Print NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Dict Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Assign TupleStore NameStore NameStore Call Call NameLoad AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Print Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print Str NameLoad Print Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad Index Str Index Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Dict Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Print Str NameLoad Assign TupleStore NameStore NameStore Call Call NameLoad AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Print Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print Str NameLoad Print Assign NameStore Call NameLoad AttributeLoad NameLoad attr Print BinOpMod Str NameLoad If CompareEq NameLoad Str body Expr Call NameLoad NameLoad decorator_list
N/A N/A numpy N/A numpy.random N/A random N/A json N/A time datetime datetime N/A requests scipy.linalg norm N/A time N/A os N/A HOSTNAME N/A N/A N/A N/A N/A os environ get NEXT_BACKEND_GLOBAL_HOST localhost : N/A N/A N/A os environ get NEXT_BACKEND_GLOBAL_PORT 8000 run_all N/A N/A assert_200 N/A N/A timeit N/A N/A f N/A N/A N/A  
    Utility used to time the duration of code execution. This script can be composed with any other script.

    Usage::

      def f(n): 
        return n**n  

      def g(n): 
        return n,n**n 

      answer0,dt = timeit(f)(3)
      answer1,answer2,dt = timeit(g)(3)
     timed N/A N/A N/A args kw N/A N/A ts N/A N/A time time N/A result N/A f args kw N/A te N/A N/A time time N/A N/A N/A type result tuple N/A N/A N/A result N/A N/A te ts N/A N/A N/A result N/A te ts N/A N/A timed N/A N/A app_id TupleBanditsPureExploration N/A num_arms 10 N/A num_objects_to_display 4 N/A true_means N/A N/A N/A numpy array N/A range num_arms N/A float num_arms N/A total_pulls N/A 10 num_arms N/A supported_alg_ids N/A RandomSampling N/A alg_list N/A N/A alg_id supported_alg_ids N/A N/A alg_item N/A N/A N/A alg_item N/A alg_id alg_id N/A N/A alg_item N/A alg_label alg_id N/A N/A alg_item N/A params N/A N/A N/A N/A alg_list append alg_item N/A params N/A N/A N/A params N/A proportions N/A N/A algorithm alg_list N/A N/A N/A N/A N/A params N/A proportions append N/A alg_label proportion N/A algorithm N/A alg_label N/A 1.0 N/A len alg_list N/A algorithm_management_settings N/A N/A N/A algorithm_management_settings N/A mode fixed_proportions N/A N/A algorithm_management_settings N/A params params N/A n num_arms N/A k num_objects_to_display N/A delta 0.01 N/A participants N/A N/A i N/A range 10 N/A N/A participant_uid N/A %030x N/A N/A random randrange N/A 16 30 N/A N/A N/A participants append participant_uid N/A initExp_args_dict N/A N/A N/A initExp_args_dict N/A args N/A N/A N/A N/A initExp_args_dict N/A args N/A n n N/A N/A N/A initExp_args_dict N/A args N/A k k N/A N/A N/A initExp_args_dict N/A args N/A failure_probability delta N/A N/A N/A initExp_args_dict N/A args N/A participant_to_algorithm_management one_to_many N/A N/A N/A initExp_args_dict N/A args N/A algorithm_management_settings algorithm_management_settings N/A N/A N/A initExp_args_dict N/A args N/A alg_list alg_list N/A N/A N/A initExp_args_dict N/A args N/A instructions You want instructions, here are your test instructions N/A N/A N/A initExp_args_dict N/A args N/A debrief You want a debrief, here is your test debrief N/A N/A N/A initExp_args_dict N/A args N/A context_type text N/A N/A N/A initExp_args_dict N/A args N/A context Boom baby tuple works N/A N/A initExp_args_dict N/A app_id app_id N/A N/A initExp_args_dict N/A site_id replace this with working site id N/A N/A initExp_args_dict N/A site_key replace this with working site key N/A url N/A N/A http:// HOSTNAME /api/experiment N/A response N/A N/A requests post url N/A N/A json dumps initExp_args_dict headers N/A content-type application/json N/A POST initExp response = N/A response text N/A response status_code N/A initExp_response_dict N/A N/A json loads N/A response text N/A exp_uid N/A initExp_response_dict N/A exp_uid N/A exp_key N/A initExp_response_dict N/A exp_key N/A url N/A N/A N/A N/A N/A http:// HOSTNAME /api/experiment/ exp_uid / exp_key N/A response N/A N/A requests get url N/A GET experiment response = N/A response text N/A response status_code N/A initExp_response_dict N/A N/A json loads N/A response text N/A t N/A range total_pulls N/A N/A t N/A getQuery_args_dict N/A N/A N/A getQuery_args_dict N/A exp_uid exp_uid N/A N/A getQuery_args_dict N/A exp_key exp_key N/A N/A getQuery_args_dict N/A args N/A N/A N/A N/A getQuery_args_dict N/A args N/A participant_uid N/A N/A N/A numpy random choice participants N/A url N/A N/A http:// HOSTNAME /api/experiment/getQuery N/A N/A response dt N/A N/A timeit N/A requests post url N/A N/A json dumps getQuery_args_dict headers N/A content-type application/json N/A POST getQuery response =  N/A response text N/A response status_code N/A POST getQuery duration =  dt N/A N/A query_dict N/A N/A json loads N/A response text N/A query_dict N/A query_uid N/A query_dict N/A query_uid N/A targets N/A query_dict N/A target_indices N/A rewards N/A N/A N/A N/A numpy zeros N/A len targets tolist N/A N/A i target_index N/A enumerate targets N/A N/A N/A rewards N/A i N/A N/A true_means N/A N/A target_index N/A index N/A N/A N/A N/A numpy random randn 0.5 N/A target_winner N/A N/A N/A targets N/A N/A N/A numpy argmax rewards N/A target N/A target_id N/A processAnswer_args_dict N/A N/A N/A processAnswer_args_dict N/A exp_uid exp_uid N/A N/A processAnswer_args_dict N/A exp_key exp_key N/A N/A processAnswer_args_dict N/A args N/A N/A N/A N/A processAnswer_args_dict N/A args N/A query_uid query_uid N/A N/A N/A processAnswer_args_dict N/A args N/A target_winner target_winner N/A url N/A N/A http:// HOSTNAME /api/experiment/processAnswer N/A POST processAnswer args =  processAnswer_args_dict N/A N/A response dt N/A N/A timeit N/A requests post url N/A N/A json dumps processAnswer_args_dict headers N/A content-type application/json N/A POST processAnswer response N/A response text N/A response status_code N/A POST processAnswer duration =  dt N/A N/A processAnswer_json_response N/A eval N/A response text N/A N/A %s : All tests compeleted successfully app_id N/A N/A __name__ __main__ N/A N/A N/A run_all False N/A