Discretize() does not work

The engine.
Post Reply
oscarpc
Posts: 33
Joined: Mon Jun 04, 2012 1:17 am

Discretize() does not work

Post by oscarpc »

Hello again,

I am trying to use the Discretizer function, but I can not make it work. The program stops at "disc.Discretize(DSL_discretizer::Hierarchical,10,disc_result);" and it's not able to continue. I am trying with a toy problem, so my dataset is very small. What am I doing wrong?
By the way, I have so missing values "*" in my data.

I have tried to Debug line by line. When the program gets into "disc.Discretize(DSL_discretizer::Hierarchical,10,disc_result);", an error pops up:
"No source available for "std::__final_insertion_sort<__gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > > >() at 0x10010000b"

PrintDataset(temp_ds);
//discretize here;
DSL_discretizer disc(temp_ds.GetFloatData(0));
cout << "Discretized values: " << endl;
vector<int> disc_result;
disc.Discretize(DSL_discretizer::Hierarchical,10,disc_result);

My computer uses: i686-apple-darwin10-gcc-4.2.1
& Eclipse as a programming environment.

Thank you very much for your help.
Kind regards,
Oscar PC.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Discretize() does not work

Post by shooltz[BayesFusion] »

By the way, I have so missing values "*" in my data.
Does the crash happen when there's no missing data?
oscarpc
Posts: 33
Joined: Mon Jun 04, 2012 1:17 am

Re: Discretize() does not work

Post by oscarpc »

Good question.
I checked and it only happens when the dataset has Missing Data.

Thank you very much.
Oscar PC.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Discretize() does not work

Post by shooltz[BayesFusion] »

oscarpc wrote:I checked and it only happens when the dataset has Missing Data.
I'm looking into the problem now; I'll post message in this thread when the bugfix is available.
Post Reply