Yioop_V9.5_Source_Code_Documentation

ClassifierTrainer
in package

This class is used to finalize a classifier via the web interface.

Because finalizing involves training a logistic regression classifier on a potentially-large set of training examples, it can take much longer than would be allowed by the normal web execution time limit. So instead of trying to finalize a classifier directly in the controller that handles the web request, the controller kicks off a daemon that simply loads the classifier, finalizes it, and saves it back to disk.

The classifier to finalize is specified by its class label, passed as the second command-line argument. The following command would be used to run this script directly from the command-line:

$ php ClassifierTrainer.php terminal LABEL

Tags
author

Shawn Tice

Table of Contents

start()  : mixed
This is the function that should be called to get the ClassifierTrainer to start training a logistic regression instance for a particular classifier. The class label corresponding to the classifier to be finalized should be passed as the second command-line argument.

Methods

start()

This is the function that should be called to get the ClassifierTrainer to start training a logistic regression instance for a particular classifier. The class label corresponding to the classifier to be finalized should be passed as the second command-line argument.

public start() : mixed
Return values
mixed

        

Search results