lunes, 23 de marzo de 2009

Perceptron

P E R C E P T R O N

El perceptrón usa una matriz para representar las redes neuronales y es un discriminador terciario que traza su entrada x (un vector binario) a un único valor de salida f(x) (un solo valor binario) a través de dicha matriz.


Perceptron.java

import java.text.DecimalFormat;
import java.text.NumberFormat;
import org.junit.Test;

public class Perceptron {
patterns
teaching
attributes

public void deltaRule() {
boolean allCorrect = false;
boolean error = false;
double learningFactor = 0.2;
while (!allCorrect) {
error = false;
for (int i = 0; i < numberOfPatterns; i++) {
}
if (!error) {
allCorrect = true;
}
}
}

int[] setOutputValues(int patternNo) {

double bias = 0.7;
int[] result = new int[numberOfOutputNeurons];
int[] toImpress = patterns[patternNo];
for (int i = 0; i < toImpress.length; i++) {
}
return result;
}

public void printMatrix(double[][] matrix) {
}


public void testPerceptron() {

}
}

No hay comentarios:

Publicar un comentario