项目作者: lpfann

项目描述 :
Simple proof of concept for feature relevance bounds written in Julia.
高级语言: Jupyter Notebook
项目地址: git://github.com/lpfann/Fri.jl.git
创建时间: 2019-11-12T15:24:04Z
项目社区:https://github.com/lpfann/Fri.jl

开源协议:

下载


Fri.jl

This repository contains a simple Julia implementation of the feature relevance bounds method.

It exists a much more complete python version here.
This is mostly a proof of concept and is missing features such as cross validation for hyper parameteres, regression and ordinal regression models and advanced statistics for feature classification.

Quickstart

A runnable example is included in the example notebook.

  1. include("src/Fri.jl")
  1. Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]
  2. @ Base loading.jl:1273
  3. Info: Precompiling ECOS [e2685f51-7e38-5353-a97d-a921fd2c8199]
  4. @ Base loading.jl:1273
  5. Main.Fri

We generate dataset with 200 samples, 5 strongly relevant features, 4 weakly relevant features and 10 noise features (irrelevant).

  1. X,y = Main.Fri.dataset.generate(200,d_rel=5,d_irrel=10,d_weak=4);
  1. relev_bounds = Main.Fri.relevance_bounds(X,y)
  1. 17×2 Array{Float64,2}:
  2. 2.55727 2.55727
  3. 2.01039 2.01039
  4. 2.32116 2.32116
  5. 2.09897 2.09897
  6. 2.35608 2.35608
  7. -3.85029e-12 2.22748
  8. -3.8504e-12 2.22748
  9. 0.0948441 0.0948441
  10. 0.100589 0.100589
  11. 0.156153 0.156153
  12. 0.0760626 0.0760626
  13. 0.11897 0.11897
  14. 0.19504 0.19504
  15. 0.09535 0.09535
  16. 0.0669823 0.0669823
  17. 0.22617 0.22617
  18. 0.0860516 0.0860516

Minimal relevance for feature 1

  1. relev_bounds[1,1]
  1. 2.5572730462733446

Maximal relevance for feature 1

  1. relev_bounds[1,2]
  1. 2.557273051045558