aexol-studio
/
recommendation_content_based
- Public
- 22 runs
Run aexol-studio/recommendation_content_based with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
reviews |
string
|
api:McAuley-Lab/Amazon-Reviews-2023 raw_review_Digital_Music
|
HuggingFace Datasets API (api:McAuley-Lab/Amazon-Reviews-2023 raw_meta_Digital_Music) or path (path:data/reviews.csv)
|
user_id |
string
|
AHZZPUYPNZQ7QXK55HGGE3Z7TTEA
|
user id
|
user_column |
string
|
user_id
|
user column
|
product_column |
string
|
parent_asin
|
product column
|
name_column |
string
|
title
|
title column
|
text_column |
string
|
text
|
text column
|
top_n |
integer
|
10
|
top n recommendation
|
pretrained |
boolean
|
False
|
Whether to use a pretrained model
|
show_metrics |
boolean
|
False
|
Whether to show the evaluation metrics
|
{
"type": "object",
"title": "Input",
"properties": {
"top_n": {
"type": "integer",
"title": "Top N",
"default": 10,
"x-order": 6,
"description": "top n recommendation"
},
"reviews": {
"type": "string",
"title": "Reviews",
"default": "api:McAuley-Lab/Amazon-Reviews-2023 raw_review_Digital_Music",
"x-order": 0,
"description": "HuggingFace Datasets API (api:McAuley-Lab/Amazon-Reviews-2023 raw_meta_Digital_Music) or path (path:data/reviews.csv)"
},
"user_id": {
"type": "string",
"title": "User Id",
"default": "AHZZPUYPNZQ7QXK55HGGE3Z7TTEA",
"x-order": 1,
"description": "user id"
},
"pretrained": {
"type": "boolean",
"title": "Pretrained",
"default": false,
"x-order": 7,
"description": "Whether to use a pretrained model"
},
"name_column": {
"type": "string",
"title": "Name Column",
"default": "title",
"x-order": 4,
"description": "title column"
},
"text_column": {
"type": "string",
"title": "Text Column",
"default": "text",
"x-order": 5,
"description": "text column"
},
"user_column": {
"type": "string",
"title": "User Column",
"default": "user_id",
"x-order": 2,
"description": "user column"
},
"show_metrics": {
"type": "boolean",
"title": "Show Metrics",
"default": false,
"x-order": 8,
"description": "Whether to show the evaluation metrics"
},
"product_column": {
"type": "string",
"title": "Product Column",
"default": "parent_asin",
"x-order": 3,
"description": "product column"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output"
}