🎉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

"grid search met 'root_mean_squared_error: unknown'"

User: "beijinghe2008"
New Altair Community Member
Updated by Jocelyn
Hi,all

In order to get the optimized value of SVM.c and SVM.gamma, I used the 'parameter optimized (grid)' to get the expected values of SVM operator. However, I often got the NaN data as below:

Performance:
性能向量 [
-----root_mean_squared_error: unknown
-----squared_error: unknown
]
SVM.gamma = NaN
SVM.C = NaN


Who know what's the root cause?

Below are the process file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.0">
  <context>
    <input>
      <location/>
    </input>
    <output>
      <location/>
      <location/>
    </output>
    <macros/>
  </context>
  <operator activated="true" class="process" expanded="true" name="Process">
    <parameter key="logverbose" value="all"/>
    <process expanded="true" height="521" width="859">
      <operator activated="true" class="retrieve" expanded="true" height="60" name="Retrieve" width="90" x="45" y="75">
        <parameter key="repository_entry" value="//test/data/LRO1"/>
      </operator>
      <operator activated="true" class="rename" expanded="true" height="76" name="Rename" width="90" x="45" y="165">
        <parameter key="old_name" value="试油结论"/>
        <parameter key="new_name" value="syjl"/>
      </operator>
      <operator activated="true" class="replace_missing_values" expanded="true" height="94" name="Replace Missing Values" width="90" x="179" y="165">
        <parameter key="default" value="minimum"/>
        <list key="columns">
          <parameter key="LLD" value="average"/>
        </list>
      </operator>
      <operator activated="true" class="weight_by_relief" expanded="true" height="76" name="Weight by Relief" width="90" x="313" y="165"/>
      <operator activated="true" class="select_by_weights" expanded="true" height="94" name="Select by Weights" width="90" x="447" y="165">
        <parameter key="weight" value="0.6"/>
      </operator>
      <operator activated="true" class="optimize_parameters_grid" expanded="true" height="112" name="parameter optimized (grid)" width="90" x="581" y="165">
        <list key="parameters">
          <parameter key="SVM.gamma" value="[0.0;Infinity;10;linear]"/>
          <parameter key="SVM.C" value="[0.0;Infinity;10;linear]"/>
        </list>
        <process expanded="true" height="521" width="859">
          <operator activated="true" class="x_validation" expanded="true" height="112" name="Validation (2)" width="90" x="112" y="75">
            <process expanded="true" height="521" width="404">
              <operator activated="true" class="discretize_by_size" expanded="true" height="94" name="Discretize" width="90" x="44" y="30">
                <parameter key="attribute_filter_type" value="regular_expression"/>
                <parameter key="regular_expression" value="syjl"/>
                <parameter key="include_special_attributes" value="true"/>
                <parameter key="size_of_bins" value="4"/>
              </operator>
              <operator activated="true" class="support_vector_machine_libsvm" expanded="true" height="76" name="SVM" width="90" x="179" y="30">
                <parameter key="gamma" value="Infinity"/>
                <parameter key="C" value="Infinity"/>
                <list key="class_weights"/>
              </operator>
              <connect from_port="training" to_op="Discretize" to_port="example set input"/>
              <connect from_op="Discretize" from_port="example set output" 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" height="521" width="404">
              <operator activated="true" class="apply_model" expanded="true" height="76" name="applymodle (2)" width="90" x="45" y="30">
                <list key="application_parameters"/>
              </operator>
              <operator activated="true" class="extract_performance" expanded="true" height="76" name="Performance (3)" width="90" x="179" y="30"/>
              <connect from_port="model" to_op="applymodle (2)" to_port="model"/>
              <connect from_port="test set" to_op="applymodle (2)" to_port="unlabelled data"/>
              <connect from_op="applymodle (2)" from_port="labelled data" to_op="Performance (3)" to_port="example set"/>
              <connect from_op="Performance (3)" 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 (2)" to_port="training"/>
          <connect from_op="Validation (2)" from_port="model" to_port="result 1"/>
          <connect from_op="Validation (2)" 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"/>
          <portSpacing port="sink_result 2" spacing="0"/>
        </process>
      </operator>
      <operator activated="true" class="write_parameters" expanded="true" height="60" name="Write Parameters" width="90" x="581" y="345">
        <parameter key="parameter_file" value="D:\workspace_dataminer\testRepos\svmParameters.par"/>
      </operator>
      <connect from_op="Retrieve" from_port="output" to_op="Rename" to_port="example set input"/>
      <connect from_op="Rename" from_port="example set output" to_op="Replace Missing Values" to_port="example set input"/>
      <connect from_op="Replace Missing Values" from_port="example set output" to_op="Weight by Relief" to_port="example set"/>
      <connect from_op="Weight by Relief" from_port="weights" to_op="Select by Weights" to_port="weights"/>
      <connect from_op="Weight by Relief" from_port="example set" to_op="Select by Weights" to_port="example set input"/>
      <connect from_op="Select by Weights" from_port="example set output" to_op="parameter optimized (grid)" to_port="input 1"/>
      <connect from_op="parameter optimized (grid)" from_port="parameter" to_op="Write Parameters" to_port="input"/>
      <connect from_op="Write Parameters" from_port="through" to_port="result 1"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
    </process>
  </operator>
</process>


Thanks in advance!

Regards,
Xu He

Find more posts tagged with