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
"Filtering attributes by logical expressions"
Hello,
I'd like to filter examples based on a logical condition, for example that attribute B is bigger than attribute A. I cannot do this with FilterExamples. Is there another operator that I am missing? Follows an example code.
Vinicius
I'd like to filter examples based on a logical condition, for example that attribute B is bigger than attribute A. I cannot do this with FilterExamples. Is there another operator that I am missing? Follows an example code.
Best regards,
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.1.009">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.1.009" expanded="true" name="Process">
<process expanded="true" height="351" width="874">
<operator activated="true" class="generate_data_user_specification" compatibility="5.1.009" expanded="true" height="60" name="Generate Data by User Specification" width="90" x="45" y="30">
<list key="attribute_values">
<parameter key="a" value="1"/>
<parameter key="b" value="2"/>
</list>
<list key="set_additional_roles"/>
</operator>
<operator activated="true" class="filter_examples" compatibility="5.1.009" expanded="true" height="76" name="Filter Examples" width="90" x="179" y="30">
<parameter key="condition_class" value="attribute_value_filter"/>
<parameter key="parameter_string" value="b > a"/>
</operator>
<connect from_op="Generate Data by User Specification" from_port="output" to_op="Filter Examples" to_port="example set input"/>
<connect from_op="Filter Examples" from_port="example set output" 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"/>
Vinicius
Tagged:
0
Answers
you can do that by adding a Generate Attribute step: Regards,
Marco
Best regards,
Vinicius