RapidMiner

RapidMiner

Is it possible to convert Real data type to Numeric data type

Regular Contributor

Is it possible to convert Real data type to Numeric data type

I was using Process Document from Data to get TF-IDF scores and by default they are coming under Real data type. There is no way I can convert Real to Numeric data type which restricts me in running PCA or SVD as they can accept only numeric data type. Any help in this regard will be very much appreciated.
4 REPLIES
Super Contributor

Re: Is it possible to convert Real data type to Numeric data type

To make it short: there is no such operator to convert real to numeric. However, I can apply the PCA after Process Documents without problems. Which version of RapidMiner and the Text Processing extension are you using"?

Best regards,
Marius
Regular Contributor

Re: Is it possible to convert Real data type to Numeric data type

I was using "Process Document from Data" operator in the earlier version of 5.3.1. I faced this problem over there and then, to have an work around, I used "Process Document" operator after converting data to document using "Data to Document" operator. There I did not find the problem. It might just be a bug I guess.
Super Contributor

Re: Is it possible to convert Real data type to Numeric data type

Hello

Try "Format Numbers" immediately followed by "Parse Numbers".

regards

Andrew
Regular Contributor

Re: Is it possible to convert Real data type to Numeric data type

Hello!

What about "Real to Integer" operator?

It can be very helpful if you have numbers (integers) in an .xls, because "Read Excel" operator automatically convert these integers into real numbers, so one has to convert these numbers back to integers.