open-index/open-npm huggingface dataset:
npm package: @iazero/wisardjs
Description: A set of Learning Models based on WiSARD
Author: Aluizio Lima Filho
Latest version: 1.0.5

# wisardjs

## Description
This is a project to make available the different models based on WiSARD, with high performance, easy to use and to install 
and following a pattern of use. These provided models are machine learning models, with supervised, unsupervised and 
semi-supervised learning.

## to install

    npm i @iazero/wisardjs

## to use

### WiSARD

```javascript
    var lib = require('@iazero/wisardjs'); // import the module
    
    var w = new lib.Wisard(3); // instanciate a wisard object
    // The first parameter is the address size
    // the second parameter is optional as {verbose: true} can be passed
    
    // load input data, just zeros and ones  
    var X = [
          [1,1,1,0,0,0,0,0],
          [1,1,1,1,0,0,0,0],
          [0,0,0,0,1,1,1,1],
          [0,0,0,0,0,1,1,1]
        ];

    // load label data, which must be a string array
    var y = [
          "cold",
          "cold",
          "hot",
          "hot"
        ];
        
     w.train(X,y); // train data
     
     var output_val = w.classify(X); // classify data
     
     var output = lib.utils.vecFromVal(output_val); // convert the output_val object to a common vector in js;
```

### ClusWisard

```javascript
    var lib = require('@iazero/wisardjs'); // import the module
    
    var clus = new lib.ClusWisard(3, 0.1, 10, 3); // instanciate a wisard object
    // The first parameter is the address size
    // The second parameter is the min score accept to train
    // The third parameter is the maximum number of trainings in each class
    // The forth parameter is the maximum number of discriminator by cluster, for limitate the cosume of memory.
    // the last parameter is optional as {verbose: true} can be passed
    
    // load input data, just zeros and ones  
    var X = [
          [1,1,1,0,0,0,0,0],
          [1,1,1,1,0,0,0,0],
          [0,0,0,0,1,1,1,1],
          [0,0,0,0,0,1,1,1]
        ];

    // load label data, which must be a string array
    var y = [
          "cold",
          "cold",
          "hot",
          "hot"
        ];
        
     clus.train(X,y); // train data supervised
     
     // load label data, for semi-supervised learning
     var y2 = {
        '1': "cold",
        '3': "hot"
     };
      
     clus.train(X,y2); // train data semi-supervised
      
     // or you can train unsupervised too
     clus.trainUnsupervised(X);
     
     var output_val = clus.classify(X); // classify data to supervised and semi-supervised
     
     var output_val = clus.classifyUnsupervised(X); // classify data to unsupervised
     
     var output = lib.utils.vecFromVal(output_val); // convert the output_val object to a common vector in js;
```

## to uninstall

    npm uninstall @iazero/wisardjs

## Documentation
documentation in development...
npm package: @iaziz786/babel-plugin-transform-dev-prod-expression
Description: A babel plugin to transform __DEV__ and __PROD__ expressions
Author: Mohammad Aziz
Latest version: 1.0.0

# babel-plugin-transform-dev-prod-expression

[![Build Status](https://travis-ci.org/iAziz786/babel-plugin-transform-dev-prod-expression.svg?branch=master)](https://travis-ci.org/iAziz786/babel-plugin-transform-dev-prod-expression)

A babel plugin to transform `__DEV__` and `__PROD__` expressions.

### What magic it does?

It can convert this:

```js
if (__DEV__) {
  // some script to run in development mode
}

if (__PROD__) {
  // some script to run in development mode
}
```

Into this:

```js
if (process.env.NODE_ENV === 'development') {
  // some script to run in production mode
}

if (process.env.NODE_ENV === 'production') {
  // some script to run in production mode
}
```
npm package: @iaziz786/debounce
Description: This package is a the implementation of [debounce][1] function found in popular libraries like Lodash.
Author: Mohammad Aziz
Latest version: 0.1.0

# Debounce

This package is a the implementation of [debounce][1] function found in popular libraries like Lodash.

The purpose of creating a new library is learning inner workings of the function. Also, having a lightweight implementation it

### Installation

```sh
yarn add @iaziz786/debounce
```

### Missing Stuff

Currently, the API of the library do not match exactly with the lodash implementation. New features are being added soon

[1]: https://lodash.com/docs/4.17.11#debounce
npm package: @iaziz786/pipe
Description: A utility function to use to create pipe line operations for your JavaScript applications.
Author: Mohammad Aziz
Latest version: 1.0.0

# pipe :shower: [![Build Status](https://travis-ci.org/iAziz786/pipe.svg?branch=master)](https://travis-ci.org/iAziz786/pipe)

A utility function to use to create pipe line operations for your JavaScript applications.

### What is a pipe line operation?

A pipeline operation is bunch of function call that starts with a value and the result
of last function call is the parameter of the next function call. The sequence of the call
matters. If we change the sequence then the result will be very different.

#### Example

```js
const pipe = require('pipe');

const initialPrice = 5;
const coffeePrice = pipe(
  initialPrice,
  double,
  triple
);

console.log(coffeePrice); // result: 30

function double(num) {
  return num * 2;
}

function triple(num) {
  return num * 3;
}
```