Socket
Socket
Sign inDemoInstall

boruta

Package Overview
Dependencies
4
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    boruta

All relevant feature selection


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
1.12 MB
Created
Weekly downloads
 

Readme

Source

Boruta

Feature selection is a process of filtering variables with some method or criteria (Wiki). It often improves a machine learning model performance and helps with data exploration. Boruta [1] is a feature selection method that identifies all-relevant variables, instead of just selecting a minimal subset. Boruta.js is almost line-by-line port of R's package Boruta to JavaScript. It depends on the random-forest package, but can be used with other models as well.

Example

// Load boruta
const boruta = require('boruta')

// Generate synthetic data
const make = require('mkdata')
const [X, y] = make.friedman1({ nSamples: 1000 })

// Run boruta
const bor = boruta(X, y)

// Print results
console.log(bor.finalDecision)

Results:

{
  '0': 'Confirmed',
  '1': 'Confirmed',
  '2': 'Rejected',
  '3': 'Confirmed',
  '4': 'Rejected',
  '5': 'Rejected',
  '6': 'Rejected',
  '7': 'Rejected',
  '8': 'Rejected',
  '9': 'Rejected'
}

Web demo

You can try Boruta in the StatSim app: https://statsim.com/select/. It visualizes importance scores with final decisions and also suports multiple base models (linear regression, logistic regression, KNN, random forest)

References

  1. Feature Selection with the Boruta Package (2010) Miron B. Kursa, Witold R. Rudnicki

Keywords

FAQs

Last updated on 03 Jun 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc