Closed rikhuijzer closed 11 months ago
Specifically, these were all fitted models:
The following are all the lima_E
(Extraversion) rules:
if X[i, :lima_E] < 173.0 then 0.016 else 0.0 +
if X[i, :lima_E] < 173.0 then 0.014 else 0.0 +
Importance = (0.016 - 0.0) + (0.014 - 0.0) = 0.030.
The following are all the india_commitment
(Commitment) rules:
if X[i, :india_commitment] < 40.0 then 0.027 else 0.019 +
if X[i, :india_commitment] < 40.0 then 0.024 else 0.013 +
if X[i, :india_commitment] < 40.0 then 0.023 else 0.014 +
Importance: (0.027 - 0.019) + (0.024 - 0.013) + (0.023 - 0.014) = 0.028
So the feature importance logic seems correct. It just looks a bit weird in the plot because duplicate matches are not shown but it is correct.
On my data,
feature_importances
returns the following elements:which appears in a plot on the first 15 elements as
However.
lima_e
scored too high here. It looks like it was matched only once so it should get a lower score.