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
How to apply filter in DSL_dataset
Re: How to apply filter in DSL_dataset
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
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
Re: How to apply filter in DSL_dataset
Thanks, Martijn. Your reply is very useful.