I'm trying to read a data file and automatically discretize the parameters that are continuous, I've been reading the tutorial about discretization but it gaves the following code:
Code: Select all
DSL_discretizer disc(d.GetVariableData(0));
disc.Discretize(3,DSL_discretizer::MethodType::Hierarch);
I was thinking in something like the next:
Code: Select all
for (int i=0;i<m_dataSet->GetNumberOfVariables();i++)
{
if (!m_dataSet->GetVariableInfo(i).discrete)
{
DSL_discretizer disc(m_dataSet->GetVariableData(i));
disc.Discretize(8);
}
}
Another question is regarding how I could include also automatic missing values replacement like in Genie -> Replace using average value. Is there any built functionality to make it? or it should be made by hand?
Thank u very much as usual