Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad NameLoad body Assign NameStore Num If CompareLt NameLoad BinOpMult NameLoad NameLoad body Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While BoolOpOr CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult Num Call NameLoad Str While CompareLt BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body AugAssignAdd NameStore BinOpMult Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMult SubscriptLoad NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpDiv NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMult SubscriptLoad NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpDiv NameLoad Call NameLoad NameLoad Assign NameStore BinOpSub BinOpMult UnaryOpUSub NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpMult BinOpSub Num NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body If CompareEq NameLoad NameLoad body Assign NameStore ListLoad NameLoad NameLoad NameLoad orelse Assign NameStore ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq BinOpMod NameLoad Call NameLoad NameLoad Num body Assign NameStore Dict Str Str Str Dict Expr Call AttributeLoad NameLoad attr NameLoad keyword Num orelse Assign NameStore Dict Str Str Str Dict Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword Num Assign NameStore Num While BoolOpAnd CompareLt BinOpSub Call AttributeLoad NameLoad attr NameLoad BinOpMult Num NameLoad CompareGt NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword BinOpPow Num NameLoad keyword NameLoad keyword NameLoad AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword Num keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Num keyword NameLoad keyword NameLoad Assign NameStore Num While BoolOpAnd CompareLt BinOpSub Call AttributeLoad NameLoad attr NameLoad BinOpMult Num NameLoad CompareGt NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword BinOpPow Num NameLoad keyword NameLoad keyword NameLoad AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
CrowdKernel algorithm of the Online Learning Library for Next.Discovery
author: Lalit Jain, kevin.g.jamieson@gmail.com
last updated: 4/22/2015
 N/A numpy N/A numpy.random next.apps.PoolBasedTripletMDS.algs.CrowdKernel utilsCrowdKernel next.apps.PoolBasedTripletMDS.Prototype PoolBasedTripletMDSPrototype N/A time CrowdKernel N/A PoolBasedTripletMDSPrototype N/A daemonProcess N/A N/A self resource daemon_args_dict N/A N/A N/A N/A N/A task daemon_args_dict N/A args daemon_args_dict N/A N/A task N/A daemon_args_dict N/A task N/A args N/A daemon_args_dict N/A args N/A N/A task __full_embedding_update N/A N/A N/A N/A self __full_embedding_update resource args N/A N/A N/A task __incremental_embedding_update N/A N/A N/A N/A self __incremental_embedding_update resource args N/A N/A False N/A True N/A initExp N/A N/A self resource n d failure_probability params N/A N/A N/A X N/A N/A N/A N/A numpy random randn n d 0.0001 N/A tau N/A N/A N/A numpy random rand n n N/A N/A N/A resource set n n N/A N/A N/A resource set d d N/A N/A N/A resource set delta failure_probability N/A N/A N/A resource set X N/A N/A X tolist N/A N/A N/A resource set tau N/A N/A tau tolist N/A True N/A getQuery N/A N/A self resource N/A N/A N/A R 10 N/A n N/A N/A resource get n N/A d N/A N/A resource get d N/A num_reported_answers N/A N/A resource get num_reported_answers N/A N/A num_reported_answers None N/A N/A num_reported_answers 0 N/A N/A num_reported_answers N/A R n N/A N/A a N/A num_reported_answers R N/A b N/A N/A N/A numpy random randint n N/A N/A b a N/A N/A b N/A N/A N/A numpy random randint n N/A c N/A N/A N/A numpy random randint n N/A N/A N/A c a N/A c b N/A N/A c N/A N/A N/A numpy random randint n N/A N/A a b c N/A X N/A N/A numpy array N/A N/A resource get X N/A tau N/A N/A numpy array N/A N/A resource get tau N/A t_max 0.05 N/A N/A best_q best_score N/A N/A utilsCrowdKernel getRandomQuery X N/A t_start N/A N/A time time N/A best_entropy N/A -1 N/A float inf N/A N/A N/A N/A N/A time time t_start t_max N/A N/A N/A q score N/A N/A utilsCrowdKernel getRandomQuery X N/A N/A b c a q N/A p 0 N/A i N/A range n N/A N/A p N/A N/A N/A utilsCrowdKernel getCrowdKernelTripletProbability N/A X N/A b N/A X N/A c N/A X N/A i N/A tau N/A N/A a i N/A taub N/A list N/A tau N/A a N/A i N/A range n N/A N/A N/A taub N/A i N/A N/A taub N/A i N/A N/A utilsCrowdKernel getCrowdKernelTripletProbability N/A X N/A b N/A X N/A c N/A X N/A i N/A taub N/A taub N/A sum taub N/A tauc N/A list N/A tau N/A a N/A i N/A range n N/A N/A N/A tauc N/A i N/A N/A tauc N/A i N/A N/A utilsCrowdKernel getCrowdKernelTripletProbability N/A X N/A c N/A X N/A b N/A X N/A i N/A tauc N/A tauc N/A sum tauc N/A entropy N/A N/A N/A p N/A N/A utilsCrowdKernel getEntropy taub N/A N/A 1 p N/A N/A utilsCrowdKernel getEntropy tauc N/A N/A entropy best_entropy N/A N/A best_q q N/A best_entropy entropy N/A index_center N/A best_q N/A 2 N/A index_left N/A best_q N/A 0 N/A index_right N/A best_q N/A 1 N/A N/A index_center index_left index_right N/A processAnswer N/A N/A self resource index_center index_left index_right index_winner N/A N/A N/A N/A index_left index_winner N/A N/A q N/A index_left index_right index_center N/A N/A q N/A index_right index_left index_center N/A N/A N/A resource append_list S q N/A n N/A N/A resource get n N/A num_reported_answers N/A N/A resource increment num_reported_answers N/A N/A N/A num_reported_answers N/A int n 0 N/A N/A daemon_args_dict N/A task args __full_embedding_update N/A N/A N/A N/A resource daemonProcess daemon_args_dict time_limit 30 N/A N/A daemon_args_dict N/A task args __incremental_embedding_update N/A N/A N/A N/A resource daemonProcess daemon_args_dict time_limit 5 N/A True N/A predict N/A N/A self resource N/A N/A N/A key_value_dict N/A N/A resource get_many N/A X num_reported_answers N/A X N/A N/A key_value_dict get X N/A N/A num_reported_answers N/A N/A key_value_dict get num_reported_answers N/A N/A N/A X num_reported_answers N/A __incremental_embedding_update N/A N/A self resource args N/A N/A N/A verbose False N/A n N/A N/A resource get n N/A d N/A N/A resource get d N/A S N/A N/A resource get_list S N/A X N/A N/A numpy array N/A N/A resource get X N/A t_max 1.0 N/A epsilon 1e-05 N/A mu 0.05 N/A t_start N/A N/A time time N/A N/A X emp_loss_new hinge_loss_new log_loss_new acc N/A N/A utilsCrowdKernel computeEmbeddingWithGD X S mu epsilon epsilon max_iters 1 N/A k 1 N/A N/A N/A N/A N/A N/A time time t_start N/A 0.5 t_max N/A acc epsilon N/A N/A N/A X emp_loss_new hinge_loss_new log_loss_new acc N/A N/A utilsCrowdKernel computeEmbeddingWithGD X S mu max_iters N/A 2 k epsilon epsilon verbose verbose N/A k 1 N/A tau N/A N/A utilsCrowdKernel getCrowdKernelTauDistribution X S mu N/A N/A N/A resource set X N/A N/A X tolist N/A N/A N/A resource set tau N/A N/A tau tolist N/A __full_embedding_update N/A N/A self resource args N/A N/A N/A verbose False N/A n N/A N/A resource get n N/A d N/A N/A resource get d N/A S N/A N/A resource get_list S N/A X_old N/A N/A numpy array N/A N/A resource get X N/A t_max 5.0 N/A epsilon 1e-05 N/A mu 0.05 N/A N/A emp_loss_old hinge_loss_old log_loss_old N/A N/A utilsCrowdKernel getLoss X_old S N/A N/A X tmp N/A N/A utilsCrowdKernel computeEmbeddingWithEpochSGD n d S mu max_num_passes 16 epsilon 0 verbose verbose N/A t_start N/A N/A time time N/A N/A X emp_loss_new hinge_loss_new log_loss_new acc N/A N/A utilsCrowdKernel computeEmbeddingWithGD X S mu max_iters 1 epsilon epsilon verbose verbose N/A k 1 N/A N/A N/A N/A N/A N/A time time t_start N/A 0.5 t_max N/A acc epsilon N/A N/A N/A X emp_loss_new hinge_loss_new log_loss_new acc N/A N/A utilsCrowdKernel computeEmbeddingWithGD X S mu max_iters N/A 2 k epsilon epsilon verbose verbose N/A k 1 N/A N/A emp_loss_new hinge_loss_new log_loss_new N/A N/A utilsCrowdKernel getLoss X S N/A N/A emp_loss_old emp_loss_new N/A N/A X X_old N/A tau N/A N/A utilsCrowdKernel getCrowdKernelTauDistribution X S mu N/A N/A N/A resource set X N/A N/A X tolist N/A N/A N/A resource set tau N/A N/A tau tolist N/A N/A