if you use StringIndexer to category the data, IndexToString could convert
it back.

On Wed, Jun 7, 2017 at 6:14 PM, kundan kumar <iitr.kun...@gmail.com> wrote:

> Hi Yan,
>
> This doesnt work.
>
> thanks,
> kundan
>
> On Wed, Jun 7, 2017 at 2:53 PM, 颜发才(Yan Facai) <facai....@gmail.com>
> wrote:
>
>> Hi, kumar.
>>
>> How about removing the `select` in your code?
>> namely,
>>
>> Dataset<Row> result = model.transform(testData);
>> result.show(1000, false);
>>
>>
>>
>>
>> On Wed, Jun 7, 2017 at 5:00 PM, kundan kumar <iitr.kun...@gmail.com>
>> wrote:
>>
>>> I am using
>>>
>>> Dataset<Row> result = model.transform(testData).select("probability",
>>> "label","features");
>>>  result.show(1000, false);
>>>
>>> In this case the feature vector is being printed as output. Is there a
>>> way that my original raw data gets printed instead of the feature vector OR
>>> is there a way to reverse extract my raw data from the feature vector. All
>>> of the features that my dataset have is categorical in nature.
>>>
>>> Thanks,
>>> Kundan
>>>
>>
>>
>

Reply via email to