The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"Loop Parameters"

karenkaren Member Posts: 6 Contributor II
edited May 2019 in Help
Hi!
Sorry for the naive question but I've been trying to connect the Loop Parameters operator to a Decision Tree operator :

http://postimage.org/image/2p5nn0dt0/

But in the "Edit Parameter Setting" wizard of the Loop Parameters operator  I don't get any parameter and I can't find how to select or load  them..

All the best
Karen

Answers

  • haddockhaddock Member Posts: 849 Maven
    Hi there Karen,

    The parameter setter needs to be 'upstream' of the operators whose parameters will be tweaked ( so before the XValidation in your example). That should improve things.

    Hope so!
  • karenkaren Member Posts: 6 Contributor II
    Thanks haddock,  but things have not improved  :-[

    http://postimage.org/image/2pqirnlqc/

    I can't do anything with the Edit parameter Settings wizard, can't select anything, nor write, load nothing..

    I tried also to connect it before and after the Decision tree operator.. but no changes..

  • haddockhaddock Member Posts: 849 Maven
    Sorry, I didn't make things clear, try this sort of thing ( you'll need to edit for your needs ).
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <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="369" width="878">
          <operator activated="true" class="generate_data" compatibility="5.1.006" expanded="true" height="60" name="Generate Data" width="90" x="74" y="157"/>
          <operator activated="true" class="optimize_parameters_grid" compatibility="5.1.006" expanded="true" height="94" name="Optimize Parameters (Grid)" width="90" x="246" y="165">
            <list key="parameters">
              <parameter key="SVM.C" value="[0.1;10;10;linear]"/>
            </list>
            <process expanded="true" height="353" width="878">
              <operator activated="true" class="x_validation" compatibility="5.1.006" expanded="true" height="112" name="Validation" width="90" x="94" y="97">
                <parameter key="sampling_type" value="shuffled sampling"/>
                <process expanded="true">
                  <operator activated="true" class="support_vector_machine_libsvm" compatibility="5.1.006" expanded="true" name="SVM">
                    <parameter key="svm_type" value="epsilon-SVR"/>
                    <parameter key="C" value="10.0"/>
                    <list key="class_weights"/>
                  </operator>
                  <connect from_port="training" to_op="SVM" to_port="training set"/>
                  <connect from_op="SVM" from_port="model" to_port="model"/>
                  <portSpacing port="source_training" spacing="0"/>
                  <portSpacing port="sink_model" spacing="0"/>
                  <portSpacing port="sink_through 1" spacing="0"/>
                </process>
                <process expanded="true">
                  <operator activated="true" class="apply_model" compatibility="5.1.006" expanded="true" name="Apply Model">
                    <list key="application_parameters"/>
                  </operator>
                  <operator activated="true" class="performance" compatibility="5.1.006" expanded="true" name="Performance"/>
                  <connect from_port="model" to_op="Apply Model" to_port="model"/>
                  <connect from_port="test set" to_op="Apply Model" to_port="unlabelled data"/>
                  <connect from_op="Apply Model" from_port="labelled data" to_op="Performance" to_port="labelled data"/>
                  <connect from_op="Performance" from_port="performance" to_port="averagable 1"/>
                  <portSpacing port="source_model" spacing="0"/>
                  <portSpacing port="source_test set" spacing="0"/>
                  <portSpacing port="source_through 1" spacing="0"/>
                  <portSpacing port="sink_averagable 1" spacing="0"/>
                  <portSpacing port="sink_averagable 2" spacing="0"/>
                </process>
              </operator>
              <connect from_port="input 1" to_op="Validation" to_port="training"/>
              <connect from_op="Validation" from_port="averagable 1" to_port="performance"/>
              <portSpacing port="source_input 1" spacing="0"/>
              <portSpacing port="source_input 2" spacing="0"/>
              <portSpacing port="sink_performance" spacing="0"/>
              <portSpacing port="sink_result 1" spacing="0"/>
            </process>
          </operator>
          <connect from_op="Generate Data" from_port="output" to_op="Optimize Parameters (Grid)" to_port="input 1"/>
          <connect from_op="Optimize Parameters (Grid)" from_port="performance" to_port="result 1"/>
          <connect from_op="Optimize Parameters (Grid)" from_port="parameter" 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>
Sign In or Register to comment.