Skip to main content
1-Visitor
September 21, 2018
Solved

PMML using clustering microservice

  • September 21, 2018
  • 3 replies
  • 2071 views

Hi,

How to generate PMML for  model using clustering_microservice.It will be helpful if explained in detail steps.

This topic has been closed for replies.
Best answer by cmorfin

Hi @user539

 

To generate a cluster model you need to access the AnalyticsServer_ClusteringThing, service CreateJob

When you execute this, add the datasetUri you find in Builder in the datasetRef infoTable (click the InfoTable icon, then Add, then paste the datasetUri in the datasetUri field, enter parquet for format, leave the other fields as default, press Add)

enter the clusterCount (3 for example)

Execute the service.

This will give you a jobId as output.

Copy this jobId.

Access the service RetrieveModel, fill the jobId and execute.

This will give you the pmml file

 

Kind regards

Christophe

 

3 replies

cmorfin19-TanzaniteAnswer
19-Tanzanite
September 21, 2018

Hi @user539

 

To generate a cluster model you need to access the AnalyticsServer_ClusteringThing, service CreateJob

When you execute this, add the datasetUri you find in Builder in the datasetRef infoTable (click the InfoTable icon, then Add, then paste the datasetUri in the datasetUri field, enter parquet for format, leave the other fields as default, press Add)

enter the clusterCount (3 for example)

Execute the service.

This will give you a jobId as output.

Copy this jobId.

Access the service RetrieveModel, fill the jobId and execute.

This will give you the pmml file

 

Kind regards

Christophe

 

user5391-VisitorAuthor
1-Visitor
September 22, 2018

Hi @cmorfin your post works for me.I have a small doubt.Why should me mention format as PARQUET in editing infotable as out input is csv  and output is going to be xml ?

 

 

 

19-Tanzanite
September 24, 2018

Hi @user539

 

In the steps above I am assuming the dataset has been uploaded to Builder.

Though you initially upload a csv file, it is internally stored as a parquet file, hence the parquet format .

 

Kind regards

Christophe