classifiers/perc-learn.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <getopt.h>
#include <sys/stat.h>
#include <libgen.h>
#include "../error/error.h"
#include "../hash/nps_vocab.c"
#include "Perceptron.c"

Defines

#define _GNU_SOURCE

Functions

void print_usage (FILE *f, char *progname)
int parse_args (int argc, char **argv)
int main (int argc, char **argv)

Variables

char usage []
int ignoreBias = 0
int64_t numIterations = 10
int64_t verbose = 1

Define Documentation

#define _GNU_SOURCE

Function Documentation

int main ( int  argc,
char **  argv 
)
int parse_args ( int  argc,
char **  argv 
)
void print_usage ( FILE *  f,
char *  progname 
)

Variable Documentation

int ignoreBias = 0
int64_t numIterations = 10
char usage[]
Initial value:
 "usage: %s [options] model_directory file\n"
  "Release: " HGVERSION "\n"
  "Binary perceptron training expects NPSML classifier file format as input.\n"
  "Instance weights are ignored (due to lack of appropriate translation)\n"
  "Options include:\n"
  "[-h|--help]       print this message and exit\n"
  "[-i|--iterations] the maximum number of training iterations (defaults to 20)\n"
  "[-n|--nobias]     bias parameter will be 0\n"
  "[-q|--quiet]      quite mode\n"
int64_t verbose = 1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sun Sep 11 09:40:46 2011 for NPSML by  doxygen 1.6.3