We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PMML document (stream object)

Thread ID:

Created:

Updated:

Platform:

Replies:

131215 Jun 28,2017 03:35 PM UTC Jun 30,2017 05:04 AM UTC Predictive Analytics 2
loading
Tags: Predictive Analytics
Cesar Burbano
Asked On June 28, 2017 03:35 PM UTC


Hi,

I m loading a PMML document using PMMLDocument class; It worked when I use a XML file path, but now I try loading using a Stream object, but it didn't work.

Notice: I wish to stream the data from a dataset as XML (cuz this PMML xml is inside the database), currently I am able to write a XML file from dataset using dataSet.WriteXML() and then Stream that XML file. But I wish to stream the dataset data as XML WITHOUT having to write an intermediate XML file.

Below is shown:

            MemoryStream pmmlStream = new MemoryStream();
            dataSet.WriteXml(pmmlStream, XmlWriteMode.IgnoreSchema);
            pmmlStream.Position= 0;

            PMMLDocument pmmlDocument = new PMMLDocument(pmmlStream);
            PMMLEvaluator evaluator = new PMMLEvaluatorFactory().GetPMMLEvaluatorInstance(pmmlDocument);


but I got a error when I try to load the Stream object.

Thank you in advance.

Regards,

Cesar



Ramkumar R [Syncfusion]
Replied On June 29, 2017 04:04 PM UTC

 Hi Cesar, 
 
Sorry for the inconvenience caused. We could reproduce the reported issue from our and currently we are validating on this. We will assist you through incident under your Direct Trac account and will share you the incident details by tomorrow. 
 
Regards, 
Ramkumar 


Ramkumar R [Syncfusion]
Replied On June 30, 2017 05:04 AM UTC

Hi Cesar, 
 
Thank you for your patience. 
 
We have created an incident for the reported issue. We will assist you through incident under your Direct Trac account. Our Direct Trac support system can be accessed from the following link:  
 
 
 
 
Regards,  
Ramkumar  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;