<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.svmmodel.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'svmmodel.predict-probability.php',
    1 => 'SVMModel::predict_probability',
    2 => 'Return class probabilities for previous unseen data',
  ),
  'up' => 
  array (
    0 => 'class.svmmodel.php',
    1 => 'SVMModel',
  ),
  'prev' => 
  array (
    0 => 'svmmodel.predict.php',
    1 => 'SVMModel::predict',
  ),
  'next' => 
  array (
    0 => 'svmmodel.save.php',
    1 => 'SVMModel::save',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/svm/svmmodel/predict-probability.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="svmmodel.predict-probability" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SVMModel::predict_probability</h1>
  <p class="verinfo">(PECL svm &gt;= 0.1.4)</p><p class="refpurpose"><span class="refname">SVMModel::predict_probability</span> &mdash; <span class="dc-title">Return class probabilities for previous unseen data</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-svmmodel.predict-probability-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SVMModel::predict_probability</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$data</code></span>): <span class="type"><a href="language.types.float.php" class="type float">float</a></span></div>

  <p class="simpara">
   This function accepts an array of data and attempts to predict the class, as with the predict function.
   Additionally, however, this function returns an array of probabilities, one per class in the model, which
   represent the estimated chance of the data supplied being a member of that class. Requires that the model
   to be used has been trained with the probability parameter set to true.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-svmmodel.predict-probability-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">data</code></dt>
    <dd>
     <span class="simpara">
      The array to be classified. This should be a series of key =&gt; value
      pairs in increasing key order, but not necessarily continuous.
     </span>
    </dd>
   
   
    <dt><code class="parameter">probabilities</code></dt>
    <dd>
     <span class="simpara">
      The supplied value will be filled with the probabilities. This will be either null, in the case
      of a model without probability information, or an array where the index is the class name and the value
      the predicted probability.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-svmmodel.predict-probability-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   Float the predicted value. This will be a class label in the case of
   classification, a real value in the case of regression.
   Throws SVMException on error
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-svmmodel.predict-probability-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="methodname"><strong>SVM::predict()</strong></span></li>
  </ul>
 </div>



</div><?php manual_footer($setup); ?>