"Logistic Regression Example with 2 Predictors"

statschoolstatschool Member Posts: 2 Contributor I
edited June 2019 in Help
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 ..



  • Options
    arthurgouveiaarthurgouveia Member Posts: 5 Contributor II
    Here is an example:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.3.015">
      <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 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 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 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"/>
  • Options
    statschoolstatschool Member Posts: 2 Contributor I
    Hi Arthur ,

    Thanks. Will try and revert back Thank you.
Sign In or Register to comment.