diff options
author | Patrick Wendell <pwendell@apache.org> | 2014-02-03 06:29:51 +0000 |
---|---|---|
committer | Patrick Wendell <pwendell@apache.org> | 2014-02-03 06:29:51 +0000 |
commit | 61203830f49cf7f5ce82f70ead2a155e256c02ee (patch) | |
tree | 67d83dfa860156196303eaa1f4873e2fefffe904 /site/docs/0.9.0/api/pyspark/pyspark.mllib.classification.SVMModel-class.html | |
parent | 49ab3963af9b1d79c73f749ad200f7be80785f9f (diff) | |
download | spark-website-61203830f49cf7f5ce82f70ead2a155e256c02ee.tar.gz spark-website-61203830f49cf7f5ce82f70ead2a155e256c02ee.tar.bz2 spark-website-61203830f49cf7f5ce82f70ead2a155e256c02ee.zip |
Bumping version in docs.
Diffstat (limited to 'site/docs/0.9.0/api/pyspark/pyspark.mllib.classification.SVMModel-class.html')
-rw-r--r-- | site/docs/0.9.0/api/pyspark/pyspark.mllib.classification.SVMModel-class.html | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/site/docs/0.9.0/api/pyspark/pyspark.mllib.classification.SVMModel-class.html b/site/docs/0.9.0/api/pyspark/pyspark.mllib.classification.SVMModel-class.html new file mode 100644 index 000000000..cb9d302bc --- /dev/null +++ b/site/docs/0.9.0/api/pyspark/pyspark.mllib.classification.SVMModel-class.html @@ -0,0 +1,154 @@ +<?xml version="1.0" encoding="ascii"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>pyspark.mllib.classification.SVMModel</title> + <link rel="stylesheet" href="epydoc.css" type="text/css" /> + <script type="text/javascript" src="epydoc.js"></script> +</head> + +<body bgcolor="white" text="black" link="blue" vlink="#204080" + alink="#204080"> +<!-- ==================== NAVIGATION BAR ==================== --> +<table class="navbar" border="0" width="100%" cellpadding="0" + bgcolor="#a0c0ff" cellspacing="0"> + <tr valign="middle"> + <!-- Home link --> + <th> <a + href="pyspark-module.html">Home</a> </th> + + <!-- Tree link --> + <th> <a + href="module-tree.html">Trees</a> </th> + + <!-- Index link --> + <th> <a + href="identifier-index.html">Indices</a> </th> + + <!-- Help link --> + <th> <a + href="help.html">Help</a> </th> + + <!-- Project homepage --> + <th class="navbar" align="right" width="100%"> + <table border="0" cellpadding="0" cellspacing="0"> + <tr><th class="navbar" align="center" + ><a class="navbar" target="_top" href="http://spark-project.org">PySpark</a></th> + </tr></table></th> + </tr> +</table> +<table width="100%" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="100%"> + <span class="breadcrumbs"> + <a href="pyspark-module.html">Package pyspark</a> :: + <a href="pyspark.mllib-module.html">Package mllib</a> :: + <a href="pyspark.mllib.classification-module.html">Module classification</a> :: + Class SVMModel + </span> + </td> + <td> + <table cellpadding="0" cellspacing="0"> + <!-- hide/show private --> + <tr><td align="right"><span class="options" + >[<a href="frames.html" target="_top">frames</a + >] | <a href="pyspark.mllib.classification.SVMModel-class.html" + target="_top">no frames</a>]</span></td></tr> + </table> + </td> + </tr> +</table> +<!-- ==================== CLASS DESCRIPTION ==================== --> +<h1 class="epydoc">Class SVMModel</h1><p class="nomargin-top"><span class="codelink"><a href="pyspark.mllib.classification-pysrc.html#SVMModel">source code</a></span></p> +<pre class="base-tree"> +_common.LinearModel --+ + | + <strong class="uidshort">SVMModel</strong> +</pre> + +<hr /> +<p>A support vector machine.</p> +<pre class="py-doctest"> +<span class="py-prompt">>>> </span>data = array([0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 1.0, 3.0]).reshape(4,2) +<span class="py-prompt">>>> </span>svm = SVMWithSGD.train(sc.parallelize(data)) +<span class="py-prompt">>>> </span>svm.predict(array([1.0])) > 0 +<span class="py-output">True</span></pre> + +<!-- ==================== INSTANCE METHODS ==================== --> +<a name="section-InstanceMethods"></a> +<table class="summary" border="1" cellpadding="3" + cellspacing="0" width="100%" bgcolor="white"> +<tr bgcolor="#70b0f0" class="table-header"> + <td align="left" colspan="2" class="table-header"> + <span class="table-header">Instance Methods</span></td> +</tr> +<tr> + <td width="15%" align="right" valign="top" class="summary"> + <span class="summary-type"> </span> + </td><td class="summary"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td><span class="summary-sig"><a name="predict"></a><span class="summary-sig-name">predict</span>(<span class="summary-sig-arg">self</span>, + <span class="summary-sig-arg">x</span>)</span></td> + <td align="right" valign="top"> + <span class="codelink"><a href="pyspark.mllib.classification-pysrc.html#SVMModel.predict">source code</a></span> + + </td> + </tr> + </table> + + </td> + </tr> +</table> +<!-- ==================== NAVIGATION BAR ==================== --> +<table class="navbar" border="0" width="100%" cellpadding="0" + bgcolor="#a0c0ff" cellspacing="0"> + <tr valign="middle"> + <!-- Home link --> + <th> <a + href="pyspark-module.html">Home</a> </th> + + <!-- Tree link --> + <th> <a + href="module-tree.html">Trees</a> </th> + + <!-- Index link --> + <th> <a + href="identifier-index.html">Indices</a> </th> + + <!-- Help link --> + <th> <a + href="help.html">Help</a> </th> + + <!-- Project homepage --> + <th class="navbar" align="right" width="100%"> + <table border="0" cellpadding="0" cellspacing="0"> + <tr><th class="navbar" align="center" + ><a class="navbar" target="_top" href="http://spark-project.org">PySpark</a></th> + </tr></table></th> + </tr> +</table> +<table border="0" cellpadding="0" cellspacing="0" width="100%%"> + <tr> + <td align="left" class="footer"> + Generated by Epydoc 3.0.1 on Sun Feb 2 22:20:29 2014 + </td> + <td align="right" class="footer"> + <a target="mainFrame" href="http://epydoc.sourceforge.net" + >http://epydoc.sourceforge.net</a> + </td> + </tr> +</table> + +<script type="text/javascript"> + <!-- + // Private objects are initially displayed (because if + // javascript is turned off then we want them to be + // visible); but by default, we want to hide them. So hide + // them unless we have a cookie that says to show them. + checkCookie(); + // --> +</script> +</body> +</html> |