MCPcopy Create free account

hub / github.com/Qcactus/CPR / functions

Functions136 in github.com/Qcactus/CPR

Method__init__
(self, early_stop)
recq/utils/early_stopping.py:5
Method__init__
Initializing the model. Create parameters, placeholders, embeddings and loss function.
recq/recommenders/dice.py:28
Method__init__
(self, args, dataset)
recq/recommenders/bpr.py:15
Method__init__
(self, args, dataset)
recq/recommenders/mult_vae.py:14
Method__str__
(self)
recq/utils/evaluator.py:130
Functioncreate_df_from_lines
(lines)
recq/tools/io.py:154
Methodcreate_mf_loss
(self, args)
recq/recommenders/cpr.py:13
Methodcreate_mf_loss
(self, args)
recq/recommenders/ubpr.py:12
Methodcreate_sampler
(self, dataset, args)
recq/recommenders/cpr.py:10
Methodcreate_sampler
(self, dataset, args)
recq/recommenders/ubpr.py:9
Functiondcor
(x, y)
recq/utils/loss.py:50
Functionepoch_plot
(dirname, filename, data, y, hue=None, title=None)
recq/tools/plot.py:39
Functionfind_from_lines
(lines, substr)
recq/tools/io.py:147
Methodfit
(self, args, model_dir)
recq/recommenders/dice.py:54
Methodfit
(self, args, model_dir)
recq/recommenders/mult_vae.py:164
Functionget_all_lines
Get lines after one line starting with `after` that meet the requirements: the first line starts with `first`, and the last line starts with `
recq/tools/io.py:109
Functionget_filepaths
(dir, prefix="", suffix="", filter="")
recq/tools/io.py:100
Functionget_lines
Get lines after one line starting with `after` that meet the requirements: the first line starts with `first`, and the last line starts with `
recq/tools/io.py:66
Functionget_metric_from_lines
(lines, metric, k)
recq/tools/io.py:162
Functionget_metric_in_group_from_lines
(lines, metric, k)
recq/tools/io.py:169
Functiongroup_plot
(df, y, dirname, filename, title=None)
recq/tools/plot.py:84
Functionload_pkl
(dir, filename)
recq/tools/io.py:16
Functionplot_save
( dirname, filename, data, x, y, hue=None, size=2, kind="scatter", xticks=
recq/tools/plot.py:9
Functionread_u_i_from_file
Read user-item interaction list to a file. Args: path (str): File path to restore the list with format user_id item_id item_id ... item_i
recq/tools/io.py:45
Functionrecommend
(ratings, k, n_thread=8)
recq/utils/evaluator.py:16
Methodsample
(self)
recq/utils/data.py:87
Methodsample
(self)
recq/utils/data.py:137
Methodsample
(self)
recq/utils/data.py:183
Functionsave_pkl
(obj, dir, filename)
recq/tools/io.py:11
Methodset_samplers
(self, args)
recq/utils/data.py:74
Methodset_samplers
(self, args)
recq/utils/data.py:102
Methodtrain_1_epoch
(self, epoch)
recq/recommenders/cpr.py:67
Methodtrain_1_epoch
(self, epoch)
recq/recommenders/ubpr.py:35
Methodupdate_top_k
(self, batch_top_k, batch_users_idx)
recq/utils/evaluator.py:82
Functionwrite_u_i_to_file
Write user-item interaction list to a file. Args: u_i_list (list): 2D list. u_i_list[i] contains items interacted with ith user.
recq/tools/io.py:27
Method~ThreadPool
the destructor joins all threads
recq/cyutils/include/thread_pool.h:87
← previous101–136 of 136, ranked by callers