Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Qcactus/CPR
/ functions
Functions
136 in github.com/Qcactus/CPR
⨍
Functions
136
◇
Types & classes
20
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
Function
create_df_from_lines
(lines)
recq/tools/io.py:154
Method
create_mf_loss
(self, args)
recq/recommenders/cpr.py:13
Method
create_mf_loss
(self, args)
recq/recommenders/ubpr.py:12
Method
create_sampler
(self, dataset, args)
recq/recommenders/cpr.py:10
Method
create_sampler
(self, dataset, args)
recq/recommenders/ubpr.py:9
Function
dcor
(x, y)
recq/utils/loss.py:50
Function
epoch_plot
(dirname, filename, data, y, hue=None, title=None)
recq/tools/plot.py:39
Function
find_from_lines
(lines, substr)
recq/tools/io.py:147
Method
fit
(self, args, model_dir)
recq/recommenders/dice.py:54
Method
fit
(self, args, model_dir)
recq/recommenders/mult_vae.py:164
Function
get_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
Function
get_filepaths
(dir, prefix="", suffix="", filter="")
recq/tools/io.py:100
Function
get_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
Function
get_metric_from_lines
(lines, metric, k)
recq/tools/io.py:162
Function
get_metric_in_group_from_lines
(lines, metric, k)
recq/tools/io.py:169
Function
group_plot
(df, y, dirname, filename, title=None)
recq/tools/plot.py:84
Function
load_pkl
(dir, filename)
recq/tools/io.py:16
Function
plot_save
( dirname, filename, data, x, y, hue=None, size=2, kind="scatter", xticks=
recq/tools/plot.py:9
Function
read_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
Function
recommend
(ratings, k, n_thread=8)
recq/utils/evaluator.py:16
Method
sample
(self)
recq/utils/data.py:87
Method
sample
(self)
recq/utils/data.py:137
Method
sample
(self)
recq/utils/data.py:183
Function
save_pkl
(obj, dir, filename)
recq/tools/io.py:11
Method
set_samplers
(self, args)
recq/utils/data.py:74
Method
set_samplers
(self, args)
recq/utils/data.py:102
Method
train_1_epoch
(self, epoch)
recq/recommenders/cpr.py:67
Method
train_1_epoch
(self, epoch)
recq/recommenders/ubpr.py:35
Method
update_top_k
(self, batch_top_k, batch_users_idx)
recq/utils/evaluator.py:82
Function
write_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
← previous
101–136 of 136, ranked by callers