Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17932 программиста и 1567 роботов. Сейчас ищут 1057 программистов ...
Приступая к работе

SVM::train - Create a SVMModel based on training data

Вернуться к: SVM

SVM::train

(PECL svm >= 0.1.0)

SVM::trainCreate a SVMModel based on training data

Описание

public SVMModel svm::train ( array $problem [, array $weights ] )

Train a support vector machine based on the supplied training data.

Список параметров

problem

The problem can be provided in three different ways. An array, where the data should start with the class label (usually 1 or -1) then followed by a sparse data set of dimension => data pairs. A URL to a file containing a SVM Light formatted problem, with the each line being a new training example, the start of each line containing the class (1, -1) then a series of tab separated data values shows as key:value. A opened stream pointing to a data source formatted as in the file above.

weights

Weights are an optional set of weighting parameters for the different classes, to help account for unbalanced training sets. For example, if the classes were 1 and -1, and -1 had significantly more example than one, the weight for -1 could be 0.5. Weights should be in the range 0-1.

Возвращаемые значения

Returns an SVMModel that can be used to classify previously unseen data. Throws SVMException on error



Вернуться к: SVM

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware