lastfm
logger = logging.getLogger(__name__) module-attribute ¶
LastFMMetadata ¶
Bases: Metadata
Source code in src/recnexteval/datasets/metadata/lastfm.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
config = LastFMUserMetadataConfig() 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 ¶
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 | |
LastFMUserMetadata ¶
Bases: Metadata
Source code in src/recnexteval/datasets/metadata/lastfm.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
config = LastFMUserMetadataConfig() class-attribute ¶
user_id_mapping = user_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 | |
LastFMItemMetadata ¶
Bases: Metadata
Source code in src/recnexteval/datasets/metadata/lastfm.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
config = LastFMItemMetadataConfig() 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 | |
LastFMTagMetadata ¶
Bases: Metadata
Source code in src/recnexteval/datasets/metadata/lastfm.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
config = LastFMTagMetadataConfig() 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 ¶
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 | |