poprox_recommender.evaluation.generate.outputs#

Classes

RecOutputs(dir)

Abstraction of output layout to put it in one place.

class poprox_recommender.evaluation.generate.outputs.RecOutputs(dir)#

Bases: object

Abstraction of output layout to put it in one place.

Parameters:

dir (Path)

property rec_dir#

Output directory for recommendations. This entire directory should be read with pd.read_parquet(), and it will load the shareds from it.

property emb_temp_dir#

Temporary directory for embeddings.

property emb_file#

File for final deduplicated embedding outputs.

open(part)#

Open the writers for collecting recommendation output.

Parameters:

part (int | str | None)