Skip to content

gagocarrilloedgar/data-science-js

Repository files navigation

Data-sience-js

JS-based library for data-science, statistic and math projects. Currently supporting

Quality Gate Status CodeFactor

Install

    # Install command
    npm i data-science-js

Detailed description

JS-based library for data-science, statistic and math projects. Currently supporting:

  • Mean Square Error: MSE
  • F1Score: macro

Add here functions you'd like to see as js-based

To come:

  • F1Score: averaged
  • F1Score: with null control exceptions

Usage

Some examples

   const {fOneScoreMacro} = requir('data-science-js')  

   const data = [1, 2, 0, 0, 1]
   const data = [1, 2, 1, 0 ,1 ]

   const {f1score, recall,precission} = fOneScoreMacro(target, predicted)
          

Currenly avalibale:

  • fOneScoreMacro(target [], predicted [])
  • average(arr [])
  • meanSquareError (predicted [], target [])
  • summArray(arr [])

Contributing

Simply follow:

  1. Clone the repo
  2. Create a branch with the name of the feature you want to add
  3. Pull to your branch
  4. Create a pull request to dev so it can be checked and merged

Contact info

You can contact me on LinkedIn

Edgar Gago Carrillo

or at:

edgargc.upc@gmail.com

Licence

MIT

Releases

No releases published

Packages

No packages published