linreg-core 0.8.1

Lightweight regression library (OLS, Ridge, Lasso, Elastic Net, WLS, LOESS, Polynomial) with 14 diagnostic tests, cross validation, and prediction intervals. Pure Rust - no external math dependencies. WASM, Python, FFI, and Excel XLL bindings.
Documentation
{
  "test": "feature_importance",
  "method": "statsmodels",
  "dataset": "ToothGrowth",
  "n": 60,
  "k": 2,
  "variable_names": [
    "supp",
    "dose"
  ],
  "response": "len",
  "standardized_coefficients": {
    "variable_names": [
      "supp",
      "dose"
    ],
    "standardized_coefficients": [
      0.24389269486345186,
      0.8026912693324912
    ],
    "y_std": 58.755504706651394,
    "raw_coefficients": [
      3.6999999999999984,
      9.763571428571424
    ]
  },
  "vif_ranking": {
    "variable_names": [
      "dose",
      "supp"
    ],
    "vif_values": [
      0.9999999999999998,
      1.0
    ],
    "ranking": [
      {
        "variable": "dose",
        "vif": 0.9999999999999998,
        "rsquared": 0.0,
        "interpretation": "Low multicollinearity"
      },
      {
        "variable": "supp",
        "vif": 1.0,
        "rsquared": 0.0,
        "interpretation": "Low multicollinearity"
      }
    ]
  },
  "shap": {
    "variable_names": [
      "supp",
      "dose"
    ],
    "shap_values": [
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -6.5090476190476165
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        -1.6272619047619048
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        -1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -6.5090476190476165
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        -1.6272619047619048
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ],
      [
        1.8499999999999992,
        8.136309523809519
      ]
    ],
    "base_value": 5.5725,
    "mean_abs_shap": [
      1.8499999999999976,
      5.4242063492063455
    ]
  },
  "permutation_importance": {
    "variable_names": [
      "supp",
      "dose"
    ],
    "importance": [
      0.054869685425934324,
      0.6033905547575891
    ],
    "baseline_score": 0.7037969204703638,
    "n_permutations": 10,
    "seed": 42
  }
}