amazon
logger = logging.getLogger(__name__) module-attribute ¶
AmazonItemMetadata ¶
Bases: Metadata
Source code in src/recnexteval/datasets/metadata/amazon.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
config = AmazonItemMetadataConfig() class-attribute ¶
item_id_mapping = item_id_mapping instance-attribute ¶
IS_BASE = True class-attribute instance-attribute ¶
name property ¶
Name of the object's class.
:return: Name of the object's class :rtype: str
file_path property ¶
File path of the dataset.
processed_cache_path property ¶
Path for cached processed data.
base_path = base_path if base_path else self.config.default_base_path instance-attribute ¶
filename = filename if filename else self.config.default_filename instance-attribute ¶
fetch_dataset() ¶
Check if dataset is present, if not download
Source code in src/recnexteval/datasets/base.py
39 40 41 42 43 44 45 | |
fetch_dataset_force() ¶
Force re-download of the dataset.
Source code in src/recnexteval/datasets/base.py
47 48 49 50 | |
load() ¶
Load the metadata from file and return it as a DataFrame.
Returns:
| Type | Description |
|---|---|
DataFrame | DataFrame containing the metadata. |
Source code in src/recnexteval/datasets/metadata/base.py
32 33 34 35 36 37 38 | |
AmazonMusicItemMetadata ¶
Bases: AmazonItemMetadata
Source code in src/recnexteval/datasets/metadata/amazon.py
55 56 | |
config = AmazonDigitalMusicItemMetadataConfig() class-attribute ¶
IS_BASE = True class-attribute instance-attribute ¶
name property ¶
Name of the object's class.
:return: Name of the object's class :rtype: str
file_path property ¶
File path of the dataset.
processed_cache_path property ¶
Path for cached processed data.
base_path = base_path if base_path else self.config.default_base_path instance-attribute ¶
filename = filename if filename else self.config.default_filename instance-attribute ¶
item_id_mapping = item_id_mapping instance-attribute ¶
fetch_dataset() ¶
Check if dataset is present, if not download
Source code in src/recnexteval/datasets/base.py
39 40 41 42 43 44 45 | |
fetch_dataset_force() ¶
Force re-download of the dataset.
Source code in src/recnexteval/datasets/base.py
47 48 49 50 | |
load() ¶
Load the metadata from file and return it as a DataFrame.
Returns:
| Type | Description |
|---|---|
DataFrame | DataFrame containing the metadata. |
Source code in src/recnexteval/datasets/metadata/base.py
32 33 34 35 36 37 38 | |
AmazonMovieItemMetadata ¶
Bases: AmazonItemMetadata
Source code in src/recnexteval/datasets/metadata/amazon.py
59 60 | |
config = AmazonMoviesAndTVItemMetadataConfig() class-attribute ¶
IS_BASE = True class-attribute instance-attribute ¶
name property ¶
Name of the object's class.
:return: Name of the object's class :rtype: str
file_path property ¶
File path of the dataset.
processed_cache_path property ¶
Path for cached processed data.
base_path = base_path if base_path else self.config.default_base_path instance-attribute ¶
filename = filename if filename else self.config.default_filename instance-attribute ¶
item_id_mapping = item_id_mapping instance-attribute ¶
fetch_dataset() ¶
Check if dataset is present, if not download
Source code in src/recnexteval/datasets/base.py
39 40 41 42 43 44 45 | |
fetch_dataset_force() ¶
Force re-download of the dataset.
Source code in src/recnexteval/datasets/base.py
47 48 49 50 | |
load() ¶
Load the metadata from file and return it as a DataFrame.
Returns:
| Type | Description |
|---|---|
DataFrame | DataFrame containing the metadata. |
Source code in src/recnexteval/datasets/metadata/base.py
32 33 34 35 36 37 38 | |
AmazonSubscriptionBoxesItemMetadata ¶
Bases: AmazonItemMetadata
Source code in src/recnexteval/datasets/metadata/amazon.py
63 64 | |
config = AmazonSubscriptionBoxesItemMetadataConfig() class-attribute ¶
IS_BASE = True class-attribute instance-attribute ¶
name property ¶
Name of the object's class.
:return: Name of the object's class :rtype: str
file_path property ¶
File path of the dataset.
processed_cache_path property ¶
Path for cached processed data.
base_path = base_path if base_path else self.config.default_base_path instance-attribute ¶
filename = filename if filename else self.config.default_filename instance-attribute ¶
item_id_mapping = item_id_mapping instance-attribute ¶
fetch_dataset() ¶
Check if dataset is present, if not download
Source code in src/recnexteval/datasets/base.py
39 40 41 42 43 44 45 | |
fetch_dataset_force() ¶
Force re-download of the dataset.
Source code in src/recnexteval/datasets/base.py
47 48 49 50 | |
load() ¶
Load the metadata from file and return it as a DataFrame.
Returns:
| Type | Description |
|---|---|
DataFrame | DataFrame containing the metadata. |
Source code in src/recnexteval/datasets/metadata/base.py
32 33 34 35 36 37 38 | |
AmazonBookItemMetadata ¶
Bases: AmazonItemMetadata
Source code in src/recnexteval/datasets/metadata/amazon.py
67 68 | |
config = AmazonBooksItemMetadataConfig() class-attribute ¶
IS_BASE = True class-attribute instance-attribute ¶
name property ¶
Name of the object's class.
:return: Name of the object's class :rtype: str
file_path property ¶
File path of the dataset.
processed_cache_path property ¶
Path for cached processed data.
base_path = base_path if base_path else self.config.default_base_path instance-attribute ¶
filename = filename if filename else self.config.default_filename instance-attribute ¶
item_id_mapping = item_id_mapping instance-attribute ¶
fetch_dataset() ¶
Check if dataset is present, if not download
Source code in src/recnexteval/datasets/base.py
39 40 41 42 43 44 45 | |
fetch_dataset_force() ¶
Force re-download of the dataset.
Source code in src/recnexteval/datasets/base.py
47 48 49 50 | |
load() ¶
Load the metadata from file and return it as a DataFrame.
Returns:
| Type | Description |
|---|---|
DataFrame | DataFrame containing the metadata. |
Source code in src/recnexteval/datasets/metadata/base.py
32 33 34 35 36 37 38 | |