🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Convert Apply Model.Labelled Data to ExampleSet

User: "KellyM"
New Altair Community Member
Updated by Jocelyn

Hello,

 

I am trying to build a process that applies a previously saved model to new data.  I am pulling the data in from SQL using the Read Database operator, applying the model, and then I need to rename a column before writing the data back to SQL.  Everything is fine until I try to manipulate the output from the Apply Model operator. Is there a way to convert the labelled output data to an example set so I can manipulate the results before exporting to SQL? Also, I need everything to run as one process so I can't just save the output, retrieve it, manipulate it and write to SQL.  I've tried building two separate streams in one window to do this but haven't been able to change the order of operations to run the modeling portion before retrieving the model results.

 

Thank you for the help,

 

Kelly

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "KellyM"
    New Altair Community Member
    OP
    Accepted Answer

    Hi @Pavithra_Rao

     

    I have done as you suggested and the Read Database operator is returning an ExampleSet. When I hover over the output port of the Read Database operator, though, no data is shown. 

     

    ReadDatabase Output.png

     

    ReadDatabase Output Port.png

     

    I am also feeding the Read Database operator into a Select Attributes operator before applying the model and no attributes show up here either. However, the attribute filter type I'm using is subset and I manually added the attributes that I want to select to feed into the model. This ends up working and I do not get an error. But when I try to manually add attributes to the Set Role or Rename operators, I do get an error that the attributes were not found in the exampleset.