sklearn手册5.14.2节 comparison of F-test and mutual information

此示例通过比较单变量F检验和互信息展示了它们在特征选择中的差异。F检验因只捕捉线性依赖,将x_1评为关键特征,而互信息能捕捉任意依赖,认为x_2最重要。两者都识别x_3为不相关特征。

5.14.2 comparison of F-test and mutual information

"This example illustrates the differences between univariate F-test statistics and mutual information.
We consider 3 features x_1, x_2, x_3 distributed uniformly over [0, 1], the target depends on them as follows:
y = x_1 + sin(6 * pi * x_2) + 0.1 * N(0, 1), that is the third features is completely irrelevant.
The code below plots the dependency of y against individual x_i and normalized values of univariate F-tests statistics
and mutual information.
As F-test captures only linear dependency, it rates x_1 as the most discriminative feature. On the other hand, mutual
information can capture any kind of dependency between variables and it rates x_2 as the most discriminative feature,
which probably agrees better with our intuitive perception for this example. Both methods correctly marks x_3 as
irrelevant."

"本例展示单变量F检验和互信息之间的差别。假设一个数据集中有三个特征x_1、x_2、x_3,三个特征的值均符合在区间[0,1]上的均匀分布。目标值与它们关系如下:

aidl.exe E 09-15 18:39:49 11500 11272 io_delegate.cpp:50] Failed to GetFullPathName(F:\software\QT5.14.2\Examples\Qt-5.14.2\bluetooth\build-heartrate-game-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android_f7444e-Debug\android-build\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out\org\kde\necessitas\ministro\IMinistro.java) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugAidl'. > 1 exception was raised by workers: java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: com.android.ide.common.process.ProcessException: Error while executing process F:\software\QT_for_Android\android-sdk\android-sdk\build-tools\28.0.3\aidl.exe with arguments {-pF:\software\QT_for_Android\android-sdk\android-sdk\platforms\android-29\framework.aidl -oF:\software\QT5.14.2\Examples\Qt-5.14.2\bluetooth\build-heartrate-game-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android_f7444e-Debug\android-build\build\generated\aidl_source_output_dir\debug\compileDebugAidl\out -IF:\software\QT5.14.2\Examples\Qt-5.14.2\bluetooth\build-heartrate-game-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android_f7444e-Debug\android-build\src\debug\aidl -IF:\software\QT5.14.2\Examples\Qt-5.14.2\bluetooth\build-heartrate-game-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android_f7444e-Debug\android-build\src -IF:\software\QT5.14.2\5.14.2\android\src\android\java\src -IF:\software\QT5.14.2\Examples\Qt-5.14.2\bluetooth\build-heartrate-game-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android_f7444e-Debug\android-build\aidl -dC:\Users\Administrator\AppData\Local\Temp\aidl5637717442762125526.d F:\software\QT5.14.2\5.14.2\android\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl} * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 11s 1 actionable task: 1 executed Building the android package failed! -- For more information, run this command with --verbose. 18:39:50: 进程"F:\software\QT5.14.2\5.14.2\android\bin\androiddeployqt.exe"退出,退出代码 14 。 Error while building/deploying project heartrate-game (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for Android)) When executing step "Build Android APK"
最新发布
09-16
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值