<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.remote.other.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'book.svm.php',
    1 => 'SVM',
    2 => '支持向量机',
  ),
  'up' => 
  array (
    0 => 'refs.remote.other.php',
    1 => '其它服务',
  ),
  'prev' => 
  array (
    0 => 'stomp.getdetails.php',
    1 => 'StompException::getDetails',
  ),
  'next' => 
  array (
    0 => 'svm.setup.php',
    1 => '安装/配置',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/svm/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.svm.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.svm" class="book">
 
 <h1 class="title">支持向量机</h1>
 

 <div id="intro.svm" class="preface">
  <h1 class="title">简介</h1>
  <div class="warning"><strong class="warning">警告</strong><p class="simpara">此扩展是<em>实验性</em>的。
此扩展的行为，包括其函数的名称和围绕此扩展的相关文档都可能会在未来的
PHP 版本中发生变化而不另行通知。使用本扩展应自行承担风险。</p></div>
  <p class="simpara">
   LibSVM 是 SVM 分类和回归问题的有效解决方案。svm 扩展将其包装在 PHP 接口中，以便在 PHP 脚本中轻松使用。
  </p>
 </div>

 






 





 




 





<ul class="chunklist chunklist_book"><li><a href="svm.setup.php">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="svm.requirements.php">需求</a></li><li><a href="svm.installation.php">安装</a></li></ul></li><li><a href="svm.examples.php">示例</a></li><li><a href="class.svm.php">SVM</a> — The SVM class<ul class="chunklist chunklist_book chunklist_children"><li><a href="svm.construct.php">SVM::__construct</a> — Construct a new SVM object</li><li><a href="svm.crossvalidate.php">SVM::crossvalidate</a> — Test training params on subsets of the training data</li><li><a href="svm.getoptions.php">SVM::getOptions</a> — Return the current training parameters</li><li><a href="svm.setoptions.php">SVM::setOptions</a> — Set training parameters</li><li><a href="svm.train.php">SVM::train</a> — Create a SVMModel based on training data</li></ul></li><li><a href="class.svmmodel.php">SVMModel</a> — The SVMModel class<ul class="chunklist chunklist_book chunklist_children"><li><a href="svmmodel.checkprobabilitymodel.php">SVMModel::checkProbabilityModel</a> — Returns true if the model has probability information</li><li><a href="svmmodel.construct.php">SVMModel::__construct</a> — Construct a new SVMModel</li><li><a href="svmmodel.getlabels.php">SVMModel::getLabels</a> — Get the labels the model was trained on</li><li><a href="svmmodel.getnrclass.php">SVMModel::getNrClass</a> — Returns the number of classes the model was trained with</li><li><a href="svmmodel.getsvmtype.php">SVMModel::getSvmType</a> — Get the SVM type the model was trained with</li><li><a href="svmmodel.getsvrprobability.php">SVMModel::getSvrProbability</a> — Get the sigma value for regression types</li><li><a href="svmmodel.load.php">SVMModel::load</a> — Load a saved SVM Model</li><li><a href="svmmodel.predict.php">SVMModel::predict</a> — Predict a value for previously unseen data</li><li><a href="svmmodel.predict-probability.php">SVMModel::predict_probability</a> — Return class probabilities for previous unseen data</li><li><a href="svmmodel.save.php">SVMModel::save</a> — Save a model to a file</li></ul></li></ul></div><?php manual_footer($setup); ?>