Pages: [1]
  Print  
Author Topic: Logistic Regression Example with 2 Predictors  (Read 585 times)
statschool
Newbie
*
Posts: 2


« on: June 21, 2014, 03:55:59 PM »

Hi ,

       Can anyone share an example of a logistic regression with 2 or more predictors? I am unable to select more than 1 as a predictor ..

Thanks!
Logged
arthurgouveia
Newbie
*
Posts: 5


« Reply #1 on: June 27, 2014, 05:03:02 PM »

Here is an example:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.015">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="5.3.015" expanded="true" name="Process">
    <process expanded="true">
      <operator activated="true" class="retrieve" compatibility="5.3.015" expanded="true" height="60" name="Retrieve Golf" width="90" x="179" y="30">
        <parameter key="repository_entry" value="//Samples/data/Golf"/>
      </operator>
      <operator activated="true" class="set_role" compatibility="5.3.015" expanded="true" height="76" name="Set Role" width="90" x="313" y="30">
        <parameter key="attribute_name" value="Play"/>
        <parameter key="target_role" value="label"/>
        <list key="set_additional_roles"/>
      </operator>
      <operator activated="true" class="nominal_to_numerical" compatibility="5.3.015" expanded="true" height="94" name="Nominal to Numerical" width="90" x="447" y="30">
        <parameter key="attribute_filter_type" value="subset"/>
        <parameter key="attributes" value="Outlook|Wind|"/>
        <parameter key="coding_type" value="unique integers"/>
        <list key="comparison_groups"/>
      </operator>
      <operator activated="true" class="logistic_regression" compatibility="5.3.015" expanded="true" height="94" name="Logistic Regression (2)" width="90" x="581" y="30"/>
      <connect from_op="Retrieve Golf" from_port="output" to_op="Set Role" to_port="example set input"/>
      <connect from_op="Set Role" from_port="example set output" to_op="Nominal to Numerical" to_port="example set input"/>
      <connect from_op="Nominal to Numerical" from_port="example set output" to_op="Logistic Regression (2)" to_port="training set"/>
      <connect from_op="Logistic Regression (2)" from_port="model" to_port="result 1"/>
      <connect from_op="Logistic Regression (2)" from_port="weights" 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>
Logged
statschool
Newbie
*
Posts: 2


« Reply #2 on: June 28, 2014, 02:19:22 AM »

Hi Arthur ,

Thanks. Will try and revert back Thank you.
Logged
Pages: [1]
  Print  
 
Jump to: