Options

"Logistic Regression"

TomLeeyTomLeey Member Posts: 4 Contributor I
edited May 2019 in Help
Hello,

I do some logistic regression and the Learner offers a function as a result. But i didn't find any solution
for printing the function with the datapoints (x|y).
Is there any possibility to print a function ?

Thanks for your`re help!
Tagged:

Answers

  • Options
    homburghomburg Moderator, Employee, Member Posts: 114 RM Data Scientist
    Hi TomLeey.

    You may print any plot you like. But in order to get the data points connected to your model's prediction you have to apply the newly generated model to your example set. Just take a look at the following example.
    <process version="5.1.006">
     <context>
       <input/>
       <output/>
       <macros/>
     </context>
     <operator activated="true" class="process" compatibility="5.1.006" expanded="true" name="Process">
       <process expanded="true" height="515" width="435">
         <operator activated="true" class="retrieve" compatibility="5.1.006" expanded="true" height="60" name="Retrieve" width="90" x="45" y="30">
           <parameter key="repository_entry" value="//Samples/data/Sonar"/>
         </operator>
         <operator activated="true" class="logistic_regression" compatibility="5.1.006" expanded="true" height="94" name="Logistic Regression" width="90" x="180" y="30"/>
         <operator activated="true" class="apply_model" compatibility="5.1.006" expanded="true" height="76" name="Apply Model" width="90" x="315" y="30">
           <list key="application_parameters"/>
         </operator>
         <connect from_op="Retrieve" from_port="output" to_op="Logistic Regression" to_port="training set"/>
         <connect from_op="Logistic Regression" from_port="model" to_op="Apply Model" to_port="model"/>
         <connect from_op="Logistic Regression" from_port="exampleSet" to_op="Apply Model" to_port="unlabelled data"/>
         <connect from_op="Apply Model" from_port="labelled data" to_port="result 1"/>
         <connect from_op="Apply Model" from_port="model" to_port="result 2"/>
         <portSpacing port="source_input 1" spacing="0"/>
         <portSpacing port="sink_result 1" spacing="0"/>
         <portSpacing port="sink_result 2" spacing="0"/>
         <portSpacing port="sink_result 3" spacing="0"/>
       </process>
     </operator>
    </process>
    Once this is done click on the example set tab in the result view and select any plotter and set its parameters.

    Best regards
       Helge
Sign In or Register to comment.