cdt15 / lingam

Python package for causal discovery based on LiNGAM.
https://sites.google.com/view/sshimizu06/lingam
MIT License
380 stars 59 forks source link

Sampling data randomly when calculating kernel bandwidth in HSIC #24

Open ikeuchi-screen opened 3 years ago

ikeuchi-screen commented 3 years ago

Motivation

In the hsic.get_kernel_width function, when the sample size is more than 100, the first 100 of the data are fixedly selected. This is not good when the data is being sorted.

Description

Change to random sampling of 100 data.