Find Most Important Features For Machine Learning in Python

Поделиться
HTML-код
  • Опубликовано: 12 янв 2025

Комментарии • 4

  • @NIKA-zg8en
    @NIKA-zg8en Год назад +4

    What you also can do is a Lasso Regression and increase the alpha(lambda) from zero to x and then you will see which feature will fall to zero.

  • @Richard4red
    @Richard4red Год назад +2

    There is also statistical function from scipy called stats.pearsonr() which basicly return two parameters
    correlation_coefficient, p_value = stats.pearsonr(x, y).
    correlation_coefficient is the same thing we see in df.corr() and a p-value is for statical test.
    A low p-value indicates that the correlation observed in the sample is unlikely to have occurred by random chance alone.
    for example with p-value = 0.05 we are 95% sure that there is a correlation between the variables.

    • @scarysticks66
      @scarysticks66 Год назад

      but the pearson correlation only takes correlation with two variables i think

    • @NIKA-zg8en
      @NIKA-zg8en 11 месяцев назад

      The problem with corrleation is that it only will detect collinearity but wont detect multi-collinearity...