Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

125
Vistas
Numerical input, categorial output in brain.js

Is there a way to use brain.js to give an array of numbers, and get a categorial output (preferably accompanied with a reliability value)

Suppose this code

const brain = require('brain.js');

const network = new brain.NeuralNetwork(); //IS THIS THE ONE?

network.train([
// [word count, characters, special characters]   =>  [rating]
        
  { input: [0.10, 0.20, 0.40], output: ['hard'] }, // 1 input
  { input: [0.10, 0.50, 0.50], output: ['intermediate'] }, // 2 input
  { input: [0.10, 0.40, 0.60], output: ['simple'] }, // 3 input
  { input: [0.10, 0.40, 0.50], output: ['hard'] }, // 4 input
  { input: [0.10, 0.30, 0.30], output: ['simple'] }, // 5 input
  { input: [0.10, 0.70, 0.30], output: ['hard'] }  // 6 input
]);

//Evaluate to get a difficulty rating
const output = network.run([0.10, 0.50, 0.60]);

console.log(output);

The desired output would be one of the three ratings with a reliability value (perhaps a percentage of certainty).

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda