Value for attribute must be numerical!

greg
greg New Altair Community Member
edited November 2024 in Community Q&A
Hello

I'm trying to filter a set based on a field having a value or not.

I tried "Filter Examples" with "attribute_value_filter" being "user_id=\?" but I got this strange error:

com.rapidminer.example.set.AttributeValueFilter: cannot invoke condition (Value for attribute 'user_id' must be numerical!).

The field is in fact an integer (which I assume to be numerical). What am I doing wrong??

  <operator activated="true" class="filter_examples" compatibility="5.2.006" expanded="true" height="76" name="nouveaux" width="90" x="648" y="390">
        <parameter key="condition_class" value="attribute_value_filter"/>
        <parameter key="parameter_string" value="user_id=\?"/>
      </operator>

TIA

greg
Tagged:

Answers

  • [Deleted User]
    [Deleted User] New Altair Community Member
    Hi Greg,

    try filtering by "NaN", which is the internal representation for missing values, instead of "\?".

    Best,
    Edin

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.