How to apply filter in DSL_dataset

The engine.
Post Reply
petcai
Posts: 20
Joined: Fri Nov 01, 2013 1:22 am

How to apply filter in DSL_dataset

Post by petcai »

Hi,

How do you use filter in DSL_dataset? How to construct a filter to pass to DSL_dataset.ApplyFilter()? I would like to apply a filter to select some variables in a dataset for structure learning by smilearn. I see you are able to select variables in Genie, but can you do it in smilearn? Thanks.

Regards,
Peter
Martijn
Posts: 76
Joined: Sun May 29, 2011 12:23 am

Re: How to apply filter in DSL_dataset

Post by Martijn »

Hi Peter,

The filter function is not for filtering variables but for filtering records.

If you want to select a subset of variables I recommend making a copy of the dataset and then removing the variables you are not interested in.
If I remember correctly, this is how GeNIe does it under the hood for the structure learning algorithms.

Best,

Martijn
petcai
Posts: 20
Joined: Fri Nov 01, 2013 1:22 am

Re: How to apply filter in DSL_dataset

Post by petcai »

Thanks, Martijn. Your reply is very useful.
Post Reply