{methods}
this.{method_name} = function(features) {{
    var classes = new Array({n_classes}).fill(0);
    for (var i = 0; i < trees.length; i++) {{
        classes[trees[i](features)]++;
    }}
    return findMax(classes);
}}