FP-growth on marketing data


Hello,
is it possible to apply FP-growth when the variables are polynomial? I am trying to apply the operator to this dataset, from the book Elements of Statistical Learning:
https://web.stanford.edu/~hastie/ElemStatLearn/
I am having issues because the variables are polynomial. Can FP-growth handle this data set?
Best,
Bernardo
is it possible to apply FP-growth when the variables are polynomial? I am trying to apply the operator to this dataset, from the book Elements of Statistical Learning:
https://web.stanford.edu/~hastie/ElemStatLearn/
I am having issues because the variables are polynomial. Can FP-growth handle this data set?
Best,
Bernardo
Tagged:
1
Best Answer
-
yyhuang Administrator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 363
RM Data Scientist
You may not have to re-code the numbers. But string "3" in income will be equivalent to the string "3" in age...
Suppose in the beginning, you have the numerical attributes loaded for marketing data, you can convert the values from numerical to polynominal. I would prefer to replace the nominal values "1","2","3" with the string values defined by data dictionary with "Map" or "Replace" operators
e.g. in gender1-> Male 2-> Female https://web.stanford.edu/~hastie/ElemStatLearn/datasets/marketing.info.txt
6
Answers
https://web.stanford.edu/~hastie/ElemStatLearn/datasets/marketing.data
https://web.stanford.edu/~hastie/ElemStatLearn/datasets/marketing.info.txt