watsonx
Note
ID: catalog.cards.CFPB.product.watsonx | Type: TaskCard
{
"loader": {
"files": {
"train": "https://raw.githubusercontent.com/IBM/watson-machine-learning-samples/master/cloud/data/cfpb_complaints/cfpb_compliants.csv"
},
"type": "load_csv"
},
"preprocess_steps": [
{
"mix": {
"test": "train[20%]",
"train": "train[70%]",
"validation": "train[10%]"
},
"type": "split_random_mix"
},
{
"field_to_field": {
"narrative": "text",
"product": "label"
},
"type": "rename_fields"
},
{
"mappers": {
"label": {
"credit_card": "credit card",
"credit_reporting": "credit reporting",
"debt_collection": "debt collection",
"mortgages_and_loans": "mortgages and loans",
"retail_banking": "retail banking"
}
},
"type": "map_instance_values"
},
{
"fields": {
"classes": [
"retail banking",
"mortgages and loans",
"debt collection",
"credit card",
"credit reporting"
],
"text_type": "text",
"type_of_class": "topic"
},
"type": "add_fields"
}
],
"task": "tasks.classification.multi_class",
"templates": "templates.classification.multi_class.all",
"type": "task_card"
}