Filtering ALL Examples (no. of missing data in the attribute = total no. of examples)

1705410G
1705410G New Altair Community Member
edited November 2024 in Community Q&A
I would like to filter out all missing data. Where the number of missing data in the attribute is equal to the total number of examples. 


I know Select Attribute can do the trick. However, as I have roughly 20-30 attributes where all examples missing, so I would not like to pick it out individually. 


I've tried using Filter Examples > no_missing_attributes, but I have no idea why I ended up with no examples at all from 2041 examples.

Thank you!

regards,
AY

Welcome!

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

Best Answer

Answers

  • lionelderkrikor
    lionelderkrikor New Altair Community Member
    Hi @1705410G,

    Could you share your dataset and eventually your process ?

    Regards,

    Lionel
  • 1705410G
    1705410G New Altair Community Member
    edited January 2019
    NIL - Sorry, had to remove due to privacy. 
  • lionelderkrikor
    lionelderkrikor New Altair Community Member
    Answer ✓
    Hi again @1705410G,

    A solution is to use Remove Useless Attributes operator...

    Hope it helps,

    Regards,

    Lionel
  • 1705410G
    1705410G New Altair Community Member
    edited January 2019
    lionelderkrikor 

    I'm not sure if this is the correct way to share a process. I achieve 0 examples after running this process when I only want to remove those attributes with ALL missing examples.


    Regards,
    AY
  • lionelderkrikor
    lionelderkrikor New Altair Community Member
    Hi again @1705410G,

    A solution is to use Remove Useless Attributes operator...

    Hope it helps,

    Regards,

    Lionel
  • 1705410G
    1705410G New Altair Community Member
    @ lionelderkrikor 

    Thank you!!

    Regards,
    AY

  • tftemme
    tftemme New Altair Community Member
    Hi @1705410G,

    Another solution is the operator Filter Attributes with Missing Values from the Operator Toolbox extension (which exactly does what you want and has further configurations to remove Attributes with Missing Values). The reason that you end up with 0 Examples when using Filter Examples is that the operator removes examples for which the attribute selected is missing. So as your attribute you actually want to remove has only missing values, all Examples are removed.

    Best regards,
    Fabian

  • 1705410G
    1705410G New Altair Community Member
    @ lionelderkrikor ,

    What parameters should I set in Remove Useless Attributes then? Or should I leave it ? I read it briefly but i'm unsure how it works.

    Regards,
    AY

  • 1705410G
    1705410G New Altair Community Member
    @ lionelderkrikor ,

    What parameters should I set in Remove Useless Attributes then? Or should I leave it ? I read it briefly but I don't understand how it works.

    Regards, 
    AY

  • 1705410G
    1705410G New Altair Community Member
    @ lionelderkrikor ,

    What parameters should I set it too? I read it up briefly but am unsure how it works.

    Regards,
    AY

  • 1705410G
    1705410G New Altair Community Member
    @ lionelderkrikor ,

    What parameters should I set it too? I read it up briefly but am unsure how it works.

    Regards,
    AY

  • Telcontar120
    Telcontar120 New Altair Community Member
    You can leave the default settings and it should eliminate any constant attributes.  Try running that and see if it gives you the results you are expecting.  If you then want to set a lower threshold then you can modify the min deviation for numericals or nominals.

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.