0.0.4 • Published 9 years ago
holotipos v0.0.4
Holotipos
Clasificación no supervisada, utilizando el algoritmo de Holotipos
Instalación
Requiere la previa instalación de Node y NPM
npm install holotipos -gUso
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.jsonmodo rapido
holotipos -m -v -u -c -r 0.5 ./ejemplo.json