New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

holotipos

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

holotipos

clasificación no supervisada utilizando holotipos

latest
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Holotipos

Clasificación no supervisada, utilizando el algoritmo de Holotipos

Instalación

Requiere la previa instalación de Node y NPM

npm install holotipos -g

Uso

Recibe un archivo en formato JSON

El archivo require dos atributos

  • config de tipo objeto
  • lista de tipo arreglo

Ejemplo

{
  "config": {
    "one": {
      "criterio": "igualdad",
      "peso": 0.9
    },
    "two": {
      "criterio": "umbral",
      "peso": 0.8,
      "x": 25
    },
    "three": {
      "criterio": "intervalo",
      "peso": 0.5,
      "x": ["[0, 100)", "[200, 300)", "[300, 400]"]
    },
    "four": {
      "criterio": "conjunto",
      "x": ["a", "e", "i", "o", "u"]
    }
  },
  "lista": [
    {
      "one": true,
      "two": 10,
      "three": 99,
      "four": "a"
    }, {
      "one": false,
      "two": 36,
      "three": 101,
      "four": "e"
    }, {
      "one": false,
      "two": 35,
      "three": 100,
      "four": "i"
    }, {
      "one": true,
      "two": 20,
      "three": 200,
      "four": "b"
    }, {
      "one": true,
      "two": 50,
      "three": 299,
      "four": "p"
    }, {
      "one": false,
      "two": 70,
      "three": 100,
      "four": "i"
    }, {
      "one": false,
      "two": 80,
      "three": 300,
      "four": "b"
    }, {
      "one": false,
      "two": 10,
      "three": 400,
      "four": "ñ"
    }, {
      "one": true,
      "two": 265,
      "three": 220,
      "four": "o"
    }, {
      "one": false,
      "two": 299,
      "three": 18,
      "four": "w"
    }, {
      "one": true,
      "two": 20,
      "three": 200,
      "four": "b"
    }, {
      "one": true,
      "two": 20,
      "three": 400,
      "four": "a"
    }
  ]
}

Para ejecutar el programa tiene que ingresar el comando holotipos

holotipos [opciones] <archivo>

Opciones

  • -m, --matriz Imprimir matriz de semejanza
  • -v, --valores Imprimir conjunto de valores de la matriz
  • -u, --umbrales Imprime los umbrales de semejanza
  • -c, --compacta Clasifica utilizando la componente compacta
  • -r, --conexa Clasifica utilizando la componente conexa

Ejemplo

Para visualizar todas las posibles Opciones

modo descriptivo

holotipos --matriz --valores --umbrales --compacta --conexa 0.5 ./ejemplo.json

modo rapido

holotipos -m -v -u -c -r 0.5 ./ejemplo.json

Keywords

holotipos

FAQs

Package last updated on 24 Nov 2016

Did you know?

Socket

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