this is under package arules.
so when i use unsupervised discretization of continuous variables function
df2 <- discretizeDF(df, default = list(method = "cluster", breaks = 4, labels=c("-1", "-0.5","0","0.5")))
i was able to get output of my variables in the aforementioned labels -1, -0.5, 0, 0.5.
but for supervised discretization function under arulesCBA package
df2 <- discretizeDF.supervised(df1, default = list(method = "caim", breaks = 3, labels=c("-1", "0","+1")))
the output of my continuous variables are intervals. e.g [1,18] [18,97] [97,infinite] . how can i convert the intervals to discrete values like -1, 0, +1?
thank you very much in advance. i just started using r and learning ml this recent mth. am msc finance student and am doing this for my master thesis. pls help . <3