I need to discretize a column in weka. The column name is age. It has numerical attributes. for an example values from 2-90.
I need to perform discretization based on a specific range of values process to discretize Age attribute based on the following categories.
Youth: 15 -<=25,Adult:>25-<=64,Senior:>64
How this is possible in Weka?
How can I label and adjust the intervals

Neither the supervised nor the unsupervised version of the Discretize filter will allow you to do that.
But you can achieve that goal by building a filter chain using MultiFilter:
ifelseexpressions. Set theignoreRangeto the attribute that you want to convert and also selectinvertSelection. Asexpressionuse something like:ifelse(A<=25,0,ifelse(A<=64,1,2))(25 or lower will be turned into0, 64 or lower into1and the rest into2).attributeIndices.0,1,2into more meaningful ones using RenameNominalValues. Specify the attribute you want to update inselectedAttributesand use0:Youth,1:Adult,2:SeniorasvalueReplacements.The following
MultiFiltersetup converts the 7th attribute in a dataset in such a fashion (just copy it and paste it in the Weka Explorer via the right-click menu):