HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Variance-Based Feature Importance in Neural Networks

{Cláudio Rebelo de Sá}

Abstract

This paper proposes a new method to measure the relative importance of features in Artificial Neural Networks (ANN) models. Its underlying principle assumes that the more important a feature is, the more the weights, connected to the respective input neuron, will change during the training of the model. To capture this behavior, a running variance of every weight connected to the input layer is measured during training. For that, an adaptation of Welford’s online algorithm for computing the online variance is proposed. When the training is finished, for each input, the variances of the weights are combined with the final weights to obtain the measure of relative importance for each feature. This method was tested with shallow and deep neural network architectures on several well-known classification and regression problems. The results obtained confirm that this approach is making meaningful measurements. Moreover, results showed that the importance scores are highly correlated with the variable importance method from Random Forests (RF).

Benchmarks

BenchmarkMethodologyMetrics
feature-importance-on-bostonGarson Variable Importance
Pearson Correlation: 0.76
feature-importance-on-bostonVarImpVIANN
Pearson Correlation: 0.76
feature-importance-on-breastcancerGarson Variable Importance
Pearson Correlation: 0.22
feature-importance-on-breastcancerVarImpVIANN
Pearson Correlation: 0.60
feature-importance-on-diabetesGarson Variable Importance
Pearson Correlation: 0.64
feature-importance-on-diabetesVarImpVIANN
Pearson Correlation: 0.86
feature-importance-on-digitsGarson Variable Importance
Pearson Correlation: 0.60
feature-importance-on-digitsVarImpVIANN
Pearson Correlation: 0.83
feature-importance-on-irisGarson Variable Importance
Pearson Correlation: 0.73
feature-importance-on-irisVarImpVIANN
Pearson Correlation: 0.90
feature-importance-on-wineVarImpVIANN
Pearson Correlation: 0.41
feature-importance-on-wineGarson Variable Importance
Pearson Correlation: 0.74

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp