Courses  

Perceptron algorithm in pseudo-code

    Start with random initial weights (e.g., uniform random in [-.3,.3])
    Do
    {
    For All Patterns p
    {
    For All Output Nodes j
    {
    CalculateActivation(j)
    Error_j = TargetValue_j_for_Pattern_p - Activation_j
    For All Input Nodes i To Output Node j
    {
    DeltaWeight = LearningConstant * Error_j * Activation_i
    Weight = Weight + DeltaWeight
    }
    }
    }
    }
    Until "Error is sufficiently small" Or "Time-out"

Previous slide Next slide Back to first slide View graphic version


University of AmsterdamUniversity of Amsterdam
Department of Psychology
Page last modified: 2008-09-29. Validate html.
Copyright © 2000-2009 neuroMod Group. Send us Feedback!