You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests the bandwidth selection and assignment functionality of the KDE class.
54
+
This test verifies:
55
+
- That the KDE bandwidth computed using the normal reference rule matches the output of scipy's gaussian_kde with a custom bandwidth method, for various variable sets and sample sizes.
56
+
- That the KDE bandwidth computed using Scott's rule matches the output of scipy's gaussian_kde default bandwidth, for various variable sets and sample sizes.
57
+
- That the bandwidth attribute of the KDE object can be manually set and correctly reflects the assigned value.
58
+
The test is performed for both integer and float dataframes.
Test the fitting of the KDE (Kernel Density Estimator) model when input data contains null (NaN) values.
221
+
This test verifies that:
222
+
- The KDE model is not fitted before calling `fit` and is fitted after.
223
+
- The model correctly ignores rows with null values during fitting.
224
+
- The number of training instances and variables in the fitted model matches those in a reference `scipy.stats.gaussian_kde` fitted on the same data with nulls removed.
225
+
- The computed bandwidth (covariance) of the KDE matches that of the reference implementation.
226
+
The test is performed for different combinations of variables and different numbers of training instances, using both integer and float dataframes with randomly inserted NaN values.
0 commit comments