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.
Discretize() does not work
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Discretize() does not work
Does the crash happen when there's no missing data?By the way, I have so missing values "*" in my data.
Re: Discretize() does not work
Good question.
I checked and it only happens when the dataset has Missing Data.
Thank you very much.
Oscar PC.
I checked and it only happens when the dataset has Missing Data.
Thank you very much.
Oscar PC.
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Discretize() does not work
I'm looking into the problem now; I'll post message in this thread when the bugfix is available.oscarpc wrote:I checked and it only happens when the dataset has Missing Data.