You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by xt...@apache.org on 2016/04/07 23:47:33 UTC
[30/51] [abbrv] [partial] incubator-madlib-site git commit: Update
doc for 1.9 release
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__association__rules.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__association__rules.html b/docs/latest/group__grp__association__rules.html
index c993024..e090eba 100644
--- a/docs/latest/group__grp__association__rules.html
+++ b/docs/latest/group__grp__association__rules.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -131,7 +125,7 @@ Modules</h2></td></tr>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:10 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__bayes.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__bayes.html b/docs/latest/group__grp__bayes.html
index 8e6364b..95aa26c 100644
--- a/docs/latest/group__grp__bayes.html
+++ b/docs/latest/group__grp__bayes.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -134,7 +128,7 @@ $(document).ready(function(){initNavTree('group__grp__bayes.html','');});
<a href="#related">Related Topics</a> </li>
</ul>
</div><dl class="section warning"><dt>Warning</dt><dd><em> This MADlib method is still in early stage development. There may be some issues that will be addressed in a future version. Interface and implementation is subject to change. </em></dd></dl>
-<p>Naive Bayes refers to a stochastic model where all independent variables \( a_1, \dots, a_n \) (often referred to as attributes in this context) independently contribute to the probability that a data point belongs to a certain class \( c \).</p>
+<p>Naive Bayes refers to a stochastic model where all independent variables <img class="formulaInl" alt="$ a_1, \dots, a_n $" src="form_18.png"/> (often referred to as attributes in this context) independently contribute to the probability that a data point belongs to a certain class <img class="formulaInl" alt="$ c $" src="form_19.png"/>.</p>
<p>Naives Bayes classification estimates feature probabilities and class priors using maximum likelihood or Laplacian smoothing. For numeric attributes, Gaussian smoothing can be used to estimate the feature probabilities.These parameters are then used to classify new data.</p>
<p><a class="anchor" id="train"></a></p><dl class="section user"><dt>Training Function(s)</dt><dd></dd></dl>
<p>For data with only categorical attributes, precompute feature probabilities and class priors using the following function:</p>
@@ -228,15 +222,15 @@ key | class | nb_prob
<pre>'<em>featureProbsName</em>', '<em>classPriorsName</em>'</pre><p> with </p><pre>'<em>trainingSource</em>', '<em>trainingClassColumn</em>', '<em>trainingAttrColumn</em>'</pre><p> for data without any any numeric attributes and with </p><pre>'<em>trainingSource</em>', '<em>trainingClassColumn</em>', '<em>trainingAttrColumn</em>', '<em>numericAttrsColumnIndices</em>'</pre><p> for data containing numeric attributes as well.</p>
<p><a class="anchor" id="notes"></a></p><dl class="section user"><dt>Implementation Notes</dt><dd><ul>
<li>The probabilities computed on the platforms of PostgreSQL and Greenplum database have a small difference due to the nature of floating point computation. Usually this is not important. However, if a data point has <p class="formulaDsp">
-\[ P(C=c_i \mid A) \approx P(C=c_j \mid A) \]
+<img class="formulaDsp" alt="\[ P(C=c_i \mid A) \approx P(C=c_j \mid A) \]" src="form_20.png"/>
</p>
for two classes, this data point might be classified into diferent classes on PostgreSQL and Greenplum. This leads to the differences in classifications on PostgreSQL and Greenplum for some data sets, but this should not affect the quality of the results.</li>
<li>When two classes have equal and highest probability among all classes, the classification result is an array of these two classes, but the order of the two classes is random.</li>
<li>The current implementation of Naive Bayes classification is suitable for discontinuous (categorial) attributes as well as continuous (numeric) attributes.<br />
-For continuous data, a typical assumption, usually used for small datasets, is that the continuous values associated with each class are distributed according to a Gaussian distribution, and the probabilities \( P(A_i = a \mid C=c) \) are estimated using the Gaussian Distribution formula: <p class="formulaDsp">
-\[ P(A_i=a \mid C=c) = \frac{1}{\sqrt{2\pi\sigma^{2}_c}}exp\left(-\frac{(a-\mu_c)^{2}}{2\sigma^{2}_c}\right) \]
+For continuous data, a typical assumption, usually used for small datasets, is that the continuous values associated with each class are distributed according to a Gaussian distribution, and the probabilities <img class="formulaInl" alt="$ P(A_i = a \mid C=c) $" src="form_21.png"/> are estimated using the Gaussian Distribution formula: <p class="formulaDsp">
+<img class="formulaDsp" alt="\[ P(A_i=a \mid C=c) = \frac{1}{\sqrt{2\pi\sigma^{2}_c}}exp\left(-\frac{(a-\mu_c)^{2}}{2\sigma^{2}_c}\right) \]" src="form_22.png"/>
</p>
- where \(\mu_c\) and \(\sigma^{2}_c\) are the population mean and variance of the attribute for the class \(c\).<br />
+ where <img class="formulaInl" alt="$\mu_c$" src="form_23.png"/> and <img class="formulaInl" alt="$\sigma^{2}_c$" src="form_24.png"/> are the population mean and variance of the attribute for the class <img class="formulaInl" alt="$c$" src="form_25.png"/>.<br />
Another common technique for handling continuous values, which is better for large data sets, is to use binning to discretize the values, and convert the continuous data into categorical bins. This approach is currently not implemented.</li>
<li>One can provide floating point data to the Naive Bayes classification function. If the corresponding attribute index is not specified in <em>numericAttrsColumnIndices</em>, floating point numbers will be used as symbolic substitutions for categorial data. In this case, the classification would work best if there are sufficient data points for each floating point attribute. However, if floating point numbers are used as continuous data without the attribute being marked as of type numeric in <em>numericAttrsColumnIndices</em>, no warning is raised and the result may not be as expected.</li>
</ul>
@@ -446,31 +440,31 @@ SELECT * FROM probs_view;
</ol>
<p><a class="anchor" id="background"></a></p><dl class="section user"><dt>Technical Background</dt><dd></dd></dl>
<p>In detail, <b>Bayes'</b> theorem states that </p><p class="formulaDsp">
-\[ \Pr(C = c \mid A_1 = a_1, \dots, A_n = a_n) = \frac{\Pr(C = c) \cdot \Pr(A_1 = a_1, \dots, A_n = a_n \mid C = c)} {\Pr(A_1 = a_1, \dots, A_n = a_n)} \,, \]
+<img class="formulaDsp" alt="\[ \Pr(C = c \mid A_1 = a_1, \dots, A_n = a_n) = \frac{\Pr(C = c) \cdot \Pr(A_1 = a_1, \dots, A_n = a_n \mid C = c)} {\Pr(A_1 = a_1, \dots, A_n = a_n)} \,, \]" src="form_26.png"/>
</p>
<p> and the <b>naive</b> assumption is that </p><p class="formulaDsp">
-\[ \Pr(A_1 = a_1, \dots, A_n = a_n \mid C = c) = \prod_{i=1}^n \Pr(A_i = a_i \mid C = c) \,. \]
+<img class="formulaDsp" alt="\[ \Pr(A_1 = a_1, \dots, A_n = a_n \mid C = c) = \prod_{i=1}^n \Pr(A_i = a_i \mid C = c) \,. \]" src="form_27.png"/>
</p>
<p> Naives Bayes classification estimates feature probabilities and class priors using maximum likelihood or Laplacian smoothing. These parameters are then used to classifying new data.</p>
<p>A Naive Bayes classifier computes the following formula: </p><p class="formulaDsp">
-\[ \text{classify}(a_1, ..., a_n) = \arg\max_c \left\{ \Pr(C = c) \cdot \prod_{i=1}^n \Pr(A_i = a_i \mid C = c) \right\} \]
+<img class="formulaDsp" alt="\[ \text{classify}(a_1, ..., a_n) = \arg\max_c \left\{ \Pr(C = c) \cdot \prod_{i=1}^n \Pr(A_i = a_i \mid C = c) \right\} \]" src="form_28.png"/>
</p>
-<p> where \( c \) ranges over all classes in the training data and probabilites are estimated with relative frequencies from the training set. There are different ways to estimate the feature probabilities \( P(A_i = a \mid C = c) \). The maximum likelihood estimate takes the relative frequencies. That is: </p><p class="formulaDsp">
-\[ P(A_i = a \mid C = c) = \frac{\#(c,i,a)}{\#c} \]
+<p> where <img class="formulaInl" alt="$ c $" src="form_19.png"/> ranges over all classes in the training data and probabilites are estimated with relative frequencies from the training set. There are different ways to estimate the feature probabilities <img class="formulaInl" alt="$ P(A_i = a \mid C = c) $" src="form_29.png"/>. The maximum likelihood estimate takes the relative frequencies. That is: </p><p class="formulaDsp">
+<img class="formulaDsp" alt="\[ P(A_i = a \mid C = c) = \frac{\#(c,i,a)}{\#c} \]" src="form_30.png"/>
</p>
<p> where</p><ul>
-<li>\( \#(c,i,a) \) denotes the # of training samples where attribute \( i \) is \( a \) and class is \( c \)</li>
-<li>\( \#c \) denotes the # of training samples where class is \( c \).</li>
+<li><img class="formulaInl" alt="$ \#(c,i,a) $" src="form_31.png"/> denotes the # of training samples where attribute <img class="formulaInl" alt="$ i $" src="form_32.png"/> is <img class="formulaInl" alt="$ a $" src="form_33.png"/> and class is <img class="formulaInl" alt="$ c $" src="form_19.png"/></li>
+<li><img class="formulaInl" alt="$ \#c $" src="form_34.png"/> denotes the # of training samples where class is <img class="formulaInl" alt="$ c $" src="form_19.png"/>.</li>
</ul>
-<p>Since the maximum likelihood sometimes results in estimates of "0", you might want to use a "smoothed" estimate. To do this, you add a number of "virtual" samples and make the assumption that these samples are evenly distributed among the values assumed by attribute \( i \) (that is, the set of all values observed for attribute \( a \) for any class):</p>
+<p>Since the maximum likelihood sometimes results in estimates of "0", you might want to use a "smoothed" estimate. To do this, you add a number of "virtual" samples and make the assumption that these samples are evenly distributed among the values assumed by attribute <img class="formulaInl" alt="$ i $" src="form_32.png"/> (that is, the set of all values observed for attribute <img class="formulaInl" alt="$ a $" src="form_33.png"/> for any class):</p>
<p class="formulaDsp">
-\[ P(A_i = a \mid C = c) = \frac{\#(c,i,a) + s}{\#c + s \cdot \#i} \]
+<img class="formulaDsp" alt="\[ P(A_i = a \mid C = c) = \frac{\#(c,i,a) + s}{\#c + s \cdot \#i} \]" src="form_35.png"/>
</p>
<p> where</p><ul>
-<li>\( \#i \) denotes the # of distinct values for attribute \( i \) (for all classes)</li>
-<li>\( s \geq 0 \) denotes the smoothing factor.</li>
+<li><img class="formulaInl" alt="$ \#i $" src="form_36.png"/> denotes the # of distinct values for attribute <img class="formulaInl" alt="$ i $" src="form_32.png"/> (for all classes)</li>
+<li><img class="formulaInl" alt="$ s \geq 0 $" src="form_37.png"/> denotes the smoothing factor.</li>
</ul>
-<p>The case \( s = 1 \) is known as "Laplace smoothing". The case \( s = 0 \) trivially reduces to maximum-likelihood estimates.</p>
+<p>The case <img class="formulaInl" alt="$ s = 1 $" src="form_38.png"/> is known as "Laplace smoothing". The case <img class="formulaInl" alt="$ s = 0 $" src="form_39.png"/> trivially reduces to maximum-likelihood estimates.</p>
<p><a class="anchor" id="literature"></a></p><dl class="section user"><dt>Literature</dt><dd></dd></dl>
<p>[1] Tom Mitchell: Machine Learning, McGraw Hill, 1997. Book chapter <em>Generativ and Discriminative Classifiers: Naive Bayes and Logistic Regression</em> available at: <a href="http://www.cs.cmu.edu/~tom/NewChapters.html">http://www.cs.cmu.edu/~tom/NewChapters.html</a></p>
<p>[2] Wikipedia, Naive Bayes classifier, <a href="http://en.wikipedia.org/wiki/Naive_Bayes_classifier">http://en.wikipedia.org/wiki/Naive_Bayes_classifier</a></p>
@@ -480,7 +474,7 @@ SELECT * FROM probs_view;
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:11 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__cg.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__cg.html b/docs/latest/group__grp__cg.html
index d53197d..2350fcb 100644
--- a/docs/latest/group__grp__cg.html
+++ b/docs/latest/group__grp__cg.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -125,9 +119,9 @@ $(document).ready(function(){initNavTree('group__grp__cg.html','');});
</ul>
</div><dl class="section warning"><dt>Warning</dt><dd><em> This MADlib method is still in early stage development. There may be some issues that will be addressed in a future version. Interface and implementation is subject to change. </em></dd></dl>
<p>This function uses the iterative conjugate gradient method [1] to find a solution to the function: </p><p class="formulaDsp">
-\[ \boldsymbol Ax = \boldsymbol b \]
+<img class="formulaDsp" alt="\[ \boldsymbol Ax = \boldsymbol b \]" src="form_44.png"/>
</p>
-<p> where \( \boldsymbol A \) is a symmetric, positive definite matrix and \(x\) and \( \boldsymbol b \) are vectors.</p>
+<p> where <img class="formulaInl" alt="$ \boldsymbol A $" src="form_45.png"/> is a symmetric, positive definite matrix and <img class="formulaInl" alt="$x$" src="form_42.png"/> and <img class="formulaInl" alt="$ \boldsymbol b $" src="form_43.png"/> are vectors.</p>
<p><a class="anchor" id="syntax"></a></p><dl class="section user"><dt>Function Syntax</dt><dd>Conjugate gradient returns x as an array. It has the following syntax.</dd></dl>
<pre class="syntax">
conjugate_gradient( table_name,
@@ -136,11 +130,11 @@ conjugate_gradient( table_name,
aray_of_b_values,
desired_precision
)
-</pre><p>Matrix \( \boldsymbol A \) is assumed to be stored in a table where each row consists of at least two columns: array containing values of a given row, row number: </p><pre>{TABLE|VIEW} <em>matrix_A</em> (
+</pre><p>Matrix <img class="formulaInl" alt="$ \boldsymbol A $" src="form_45.png"/> is assumed to be stored in a table where each row consists of at least two columns: array containing values of a given row, row number: </p><pre>{TABLE|VIEW} <em>matrix_A</em> (
<em>row_number</em> FLOAT,
<em>row_values</em> FLOAT[],
)</pre><p> The number of elements in each row should be the same.</p>
-<p>\( \boldsymbol b \) is passed as a FLOAT[] to the function.</p>
+<p><img class="formulaInl" alt="$ \boldsymbol b $" src="form_43.png"/> is passed as a FLOAT[] to the function.</p>
<p><a class="anchor" id="examples"></a></p><dl class="section user"><dt>Examples</dt><dd><ol type="1">
<li>Construct matrix A according to structure. <pre class="example">
SELECT * FROM data;
@@ -177,7 +171,7 @@ INFO: TEST FINAL ERROR 2.90029642185163e-29
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:11 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__clustered__errors.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__clustered__errors.html b/docs/latest/group__grp__clustered__errors.html
index 29cccfe..08febdf 100644
--- a/docs/latest/group__grp__clustered__errors.html
+++ b/docs/latest/group__grp__clustered__errors.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -369,25 +363,25 @@ SELECT * FROM lung_cl_out;
<li>Note that we need to manually include an intercept term in the independent variable expression. The NULL value of <em>groupingvar</em> means that there is no grouping in the calculation.</li>
</ul>
<p><a class="anchor" id="background"></a></p><dl class="section user"><dt>Technical Background</dt><dd></dd></dl>
-<p>Assume that the data can be separated into \(m\) clusters. Usually this can be done by grouping the data table according to one or multiple columns.</p>
+<p>Assume that the data can be separated into <img class="formulaInl" alt="$m$" src="form_313.png"/> clusters. Usually this can be done by grouping the data table according to one or multiple columns.</p>
<p>The estimator has a similar form to the usual sandwich estimator </p><p class="formulaDsp">
-\[ S(\vec{c}) = B(\vec{c}) M(\vec{c}) B(\vec{c}) \]
+<img class="formulaDsp" alt="\[ S(\vec{c}) = B(\vec{c}) M(\vec{c}) B(\vec{c}) \]" src="form_314.png"/>
</p>
<p>The bread part is the same as Huber-White sandwich estimator </p><p class="formulaDsp">
-\begin{eqnarray} B(\vec{c}) & = & \left(-\sum_{i=1}^{n} H(y_i, \vec{x}_i, \vec{c})\right)^{-1}\\ & = & \left(-\sum_{i=1}^{n}\frac{\partial^2 l(y_i, \vec{x}_i, \vec{c})}{\partial c_\alpha \partial c_\beta}\right)^{-1} \end{eqnarray}
+<img class="formulaDsp" alt="\begin{eqnarray} B(\vec{c}) & = & \left(-\sum_{i=1}^{n} H(y_i, \vec{x}_i, \vec{c})\right)^{-1}\\ & = & \left(-\sum_{i=1}^{n}\frac{\partial^2 l(y_i, \vec{x}_i, \vec{c})}{\partial c_\alpha \partial c_\beta}\right)^{-1} \end{eqnarray}" src="form_315.png"/>
</p>
-<p> where \(H\) is the hessian matrix, which is the second derivative of the target function </p><p class="formulaDsp">
-\[ L(\vec{c}) = \sum_{i=1}^n l(y_i, \vec{x}_i, \vec{c})\ . \]
+<p> where <img class="formulaInl" alt="$H$" src="form_316.png"/> is the hessian matrix, which is the second derivative of the target function </p><p class="formulaDsp">
+<img class="formulaDsp" alt="\[ L(\vec{c}) = \sum_{i=1}^n l(y_i, \vec{x}_i, \vec{c})\ . \]" src="form_317.png"/>
</p>
<p>The meat part is different </p><p class="formulaDsp">
-\[ M(\vec{c}) = \bf{A}^T\bf{A} \]
+<img class="formulaDsp" alt="\[ M(\vec{c}) = \bf{A}^T\bf{A} \]" src="form_318.png"/>
</p>
-<p> where the \(m\)-th row of \(\bf{A}\) is </p><p class="formulaDsp">
-\[ A_m = \sum_{i\in G_m}\frac{\partial l(y_i,\vec{x}_i,\vec{c})}{\partial \vec{c}} \]
+<p> where the <img class="formulaInl" alt="$m$" src="form_313.png"/>-th row of <img class="formulaInl" alt="$\bf{A}$" src="form_319.png"/> is </p><p class="formulaDsp">
+<img class="formulaDsp" alt="\[ A_m = \sum_{i\in G_m}\frac{\partial l(y_i,\vec{x}_i,\vec{c})}{\partial \vec{c}} \]" src="form_320.png"/>
</p>
-<p> where \(G_m\) is the set of rows that belong to the same cluster.</p>
-<p>We can compute the quantities of \(B\) and \(A\) for each cluster during one scan through the data table in an aggregate function. Then sum over all clusters to the full \(B\) and \(A\) in the outside of the aggregate function. At last, the matrix mulplitications are done in a separate function on the master node.</p>
-<p>When multinomial logistic regression is computed before the multinomial clustered variance calculation, it uses a default reference category of zero and the regression coefficients are included in the output table. The regression coefficients in the output are in the same order as multinomial logistic regression function, which is described below. For a problem with \( K \) dependent variables \( (1, ..., K) \) and \( J \) categories \( (0, ..., J-1) \), let \( {m_{k,j}} \) denote the coefficient for dependent variable \( k \) and category \( j \). The output is \( {m_{k_1, j_0}, m_{k_1, j_1} \ldots m_{k_1, j_{J-1}}, m_{k_2, j_0}, m_{k_2, j_1} \ldots m_{k_K, j_{J-1}}} \). The order is NOT CONSISTENT with the multinomial regression marginal effect calculation with function <em>marginal_mlogregr</em>. This is deliberate because the interfaces of all multinomial regressions (robust, clustered, ...) will be moved to match that used in marginal.</p>
+<p> where <img class="formulaInl" alt="$G_m$" src="form_321.png"/> is the set of rows that belong to the same cluster.</p>
+<p>We can compute the quantities of <img class="formulaInl" alt="$B$" src="form_205.png"/> and <img class="formulaInl" alt="$A$" src="form_41.png"/> for each cluster during one scan through the data table in an aggregate function. Then sum over all clusters to the full <img class="formulaInl" alt="$B$" src="form_205.png"/> and <img class="formulaInl" alt="$A$" src="form_41.png"/> in the outside of the aggregate function. At last, the matrix mulplitications are done in a separate function on the master node.</p>
+<p>When multinomial logistic regression is computed before the multinomial clustered variance calculation, it uses a default reference category of zero and the regression coefficients are included in the output table. The regression coefficients in the output are in the same order as multinomial logistic regression function, which is described below. For a problem with <img class="formulaInl" alt="$ K $" src="form_117.png"/> dependent variables <img class="formulaInl" alt="$ (1, ..., K) $" src="form_118.png"/> and <img class="formulaInl" alt="$ J $" src="form_119.png"/> categories <img class="formulaInl" alt="$ (0, ..., J-1) $" src="form_120.png"/>, let <img class="formulaInl" alt="$ {m_{k,j}} $" src="form_121.png"/> denote the coefficient for dependent variable <img class="formulaInl" alt="$ k $" src="form_97.png"/> and category <img class="formulaInl" alt="$ j $" src="form_122.png"/>. The output is <img class="formulaInl" alt="$ {m_{k_1, j_0}, m_{k_1, j_1} \ldots m_{k_1, j_{J-1}},
m_{k_2, j_0}, m_{k_2, j_1} \ldots m_{k_K, j_{J-1}}} $" src="form_322.png"/>. The order is NOT CONSISTENT with the multinomial regression marginal effect calculation with function <em>marginal_mlogregr</em>. This is deliberate because the interfaces of all multinomial regressions (robust, clustered, ...) will be moved to match that used in marginal.</p>
<p><a class="anchor" id="literature"></a></p><dl class="section user"><dt>Literature</dt><dd></dd></dl>
<p>[1] Standard, Robust, and Clustered Standard Errors Computed in R, <a href="http://diffuseprior.wordpress.com/2012/06/15/standard-robust-and-clustered-standard-errors-computed-in-r/">http://diffuseprior.wordpress.com/2012/06/15/standard-robust-and-clustered-standard-errors-computed-in-r/</a></p>
<p><a class="anchor" id="related"></a></p><dl class="section user"><dt>Related Topics</dt><dd>File <a class="el" href="clustered__variance_8sql__in.html">clustered_variance.sql_in</a> documenting the clustered variance SQL functions.</dd></dl>
@@ -397,7 +391,7 @@ SELECT * FROM lung_cl_out;
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:10 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__clustering.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__clustering.html b/docs/latest/group__grp__clustering.html
index 21b2df2..c0cb740 100644
--- a/docs/latest/group__grp__clustering.html
+++ b/docs/latest/group__grp__clustering.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -131,7 +125,7 @@ Modules</h2></td></tr>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:10 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__compatibility.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__compatibility.html b/docs/latest/group__grp__compatibility.html
deleted file mode 100644
index 9bb7f1d..0000000
--- a/docs/latest/group__grp__compatibility.html
+++ /dev/null
@@ -1,124 +0,0 @@
-<!-- HTML header for doxygen 1.8.4-->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<meta name="generator" content="Doxygen 1.8.4"/>
-<meta name="keywords" content="madlib,postgres,greenplum,machine learning,data mining,deep learning,ensemble methods,data science,market basket analysis,affinity analysis,pca,lda,regression,elastic net,huber white,proportional hazards,k-means,latent dirichlet allocation,bayes,support vector machines,svm"/>
-<title>MADlib: Compatibility</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="navtree.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="resize.js"></script>
-<script type="text/javascript" src="navtree.js"></script>
-<script type="text/javascript">
- $(document).ready(initResizable);
- $(window).load(resizeHeight);
-</script>
-<link href="search/search.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="search/search.js"></script>
-<script type="text/javascript">
- $(document).ready(function() { searchBox.OnSelectItem(0); });
-</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
-<link href="doxygen.css" rel="stylesheet" type="text/css" />
-<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
-<!-- google analytics -->
-<script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
- ga('send', 'pageview');
-</script>
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td style="padding-left: 0.5em;">
- <div id="projectname">MADlib
-  <span id="projectnumber">1.5</span>
- </div>
- <div id="projectbrief">User Documentation</div>
- </td>
- <td> <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
-</td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.4 -->
-<script type="text/javascript">
-var searchBox = new SearchBox("searchBox", "search",false,'Search');
-</script>
-</div><!-- top -->
-<div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
-</div>
-<script type="text/javascript">
-$(document).ready(function(){initNavTree('group__grp__compatibility.html','');});
-</script>
-<div id="doc-content">
-<!-- window showing the filter options -->
-<div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
-<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Groups</a></div>
-
-<!-- iframe showing the search results (closed by default) -->
-<div id="MSearchResultsWindow">
-<iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
-</iframe>
-</div>
-
-<div class="header">
- <div class="headertitle">
-<div class="title">Compatibility<div class="ingroups"><a class="el" href="group__grp__support.html">Support Modules</a></div></div> </div>
-</div><!--header-->
-<div class="contents">
-</div><!-- contents -->
-</div><!-- doc-content -->
-<!-- start footer part -->
-<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="footer">Generated on Thu Jul 3 2014 14:09:34 for MADlib by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.4 </li>
- </ul>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__correlation.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__correlation.html b/docs/latest/group__grp__correlation.html
index f75376d..4e57436 100644
--- a/docs/latest/group__grp__correlation.html
+++ b/docs/latest/group__grp__correlation.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -124,7 +118,7 @@ $(document).ready(function(){initNavTree('group__grp__correlation.html','');});
<a href="#seealso">See Also</a> </li>
</ul>
</div><p>A correlation function is the degree and direction of association of two variables—how well one random variable can be predicted from the other. The coefficient of correlation varies from -1 to 1. A coefficient of 1 implies perfect correlation, 0 means no correlation, and -1 means perfect anti-correlation.</p>
-<p>This function provides a cross-correlation matrix for all pairs of numeric columns in a <em>source_table</em>. A correlation matrix describes correlation among \( M \) variables. It is a square symmetrical \( M \)x \(M \) matrix with the \( (ij) \)th element equal to the correlation coefficient between the \(i\)th and the \(j\)th variable. The diagonal elements (correlations of variables with themselves) are always equal to 1.0.</p>
+<p>This function provides a cross-correlation matrix for all pairs of numeric columns in a <em>source_table</em>. A correlation matrix describes correlation among <img class="formulaInl" alt="$ M $" src="form_174.png"/> variables. It is a square symmetrical <img class="formulaInl" alt="$ M $" src="form_174.png"/>x <img class="formulaInl" alt="$M $" src="form_379.png"/> matrix with the <img class="formulaInl" alt="$ (ij) $" src="form_380.png"/>th element equal to the correlation coefficient between the <img class="formulaInl" alt="$i$" src="form_128.png"/>th and the <img class="formulaInl" alt="$j$" src="form_129.png"/>th variable. The diagonal elements (correlations of variables with themselves) are always equal to 1.0.</p>
<p><a class="anchor" id="usage"></a></p><dl class="section user"><dt>Correlation Function</dt><dd></dd></dl>
<p>The correlation function has the following syntax: </p><pre class="syntax">
correlation( source_table,
@@ -132,6 +126,12 @@ correlation( source_table,
target_cols,
verbose
)
+</pre><p>The covariance function, with a similar syntax, can be used to compute the covariance between features. </p><pre class="syntax">
+covariance( source_table,
+ output_table,
+ target_cols,
+ verbose
+ )
</pre><dl class="arglist">
<dt>source_table </dt>
<dd><p class="startdd">TEXT. The name of the data containing the input data.</p>
@@ -204,7 +204,7 @@ INSERT INTO example_data VALUES
(15, NULL, 100, 100, 'true', NULL),
(16, NULL, 110, 100, 'true', NULL);
</pre></li>
-<li>Run the <a class="el" href="correlation_8sql__in.html#a17cb16646fa7ebdf7ce7dd8c58349ce5">correlation()</a> function on the data set. <pre class="example">
+<li>Run the <a class="el" href="correlation_8sql__in.html#ada17a10ea8a6c4580e7413c86ae5345e">correlation()</a> function on the data set. <pre class="example">
-- Correlate all numeric columns
SELECT madlib.correlation( 'example_data',
'example_data_output'
@@ -229,6 +229,20 @@ SELECT * FROM example_data_output ORDER BY column_position;
2 | humidity | 0.616876934548786 | 1.0
(2 rows)
</pre></li>
+<li>Compute the covariance of features in the data set. <pre class="example">
+SELECT madlib.covariance( 'example_data',
+ 'cov_output'
+ );
+</pre></li>
+<li>View the covariance matrix. <pre class="example">
+SELECT * FROM cov_output ORDER BY column_position;
+</pre> Result: <pre class="result">
+ column_position | variable | temperature | humidity
+-----------------+-------------+-------------------+----------
+ 1 | temperature | 146.25 |
+ 2 | humidity | 82.125 | 121.1875
+(2 rows)
+</pre></li>
</ol>
<dl class="section user"><dt>Notes</dt><dd>Current implementation ignores a row that contains NULL entirely. This means any correlation in such a row (with NULLs) does not contribute to the final answer.</dd></dl>
<p><a class="anchor" id="related"></a></p><dl class="section user"><dt>Related Topics</dt><dd></dd></dl>
@@ -239,7 +253,7 @@ SELECT * FROM example_data_output ORDER BY column_position;
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:10 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__countmin.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__countmin.html b/docs/latest/group__grp__countmin.html
index f3e1134..be5a7a2 100644
--- a/docs/latest/group__grp__countmin.html
+++ b/docs/latest/group__grp__countmin.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -256,7 +250,7 @@ FROM data;
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:11 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__cox__prop__hazards.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__cox__prop__hazards.html b/docs/latest/group__grp__cox__prop__hazards.html
index 6597588..52a4db1 100644
--- a/docs/latest/group__grp__cox__prop__hazards.html
+++ b/docs/latest/group__grp__cox__prop__hazards.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -425,41 +419,41 @@ p_value | {0.991994376850758,0.878855984657948}
</pre></li>
</ol>
<p><a class="anchor" id="background"></a></p><dl class="section user"><dt>Technical Background</dt><dd></dd></dl>
-<p>Generally, proportional-hazard models start with a list of \( \boldsymbol n \) observations, each with \( \boldsymbol m \) covariates and a time of death. From this \( \boldsymbol n \times m \) matrix, we would like to derive the correlation between the covariates and the hazard function. This amounts to finding the parameters \( \boldsymbol \beta \) that best fit the model described below.</p>
+<p>Generally, proportional-hazard models start with a list of <img class="formulaInl" alt="$ \boldsymbol n $" src="form_381.png"/> observations, each with <img class="formulaInl" alt="$ \boldsymbol m $" src="form_382.png"/> covariates and a time of death. From this <img class="formulaInl" alt="$ \boldsymbol n \times m $" src="form_383.png"/> matrix, we would like to derive the correlation between the covariates and the hazard function. This amounts to finding the parameters <img class="formulaInl" alt="$ \boldsymbol \beta $" src="form_384.png"/> that best fit the model described below.</p>
<p>Let us define:</p><ul>
-<li>\( \boldsymbol t \in \mathbf R^{m} \) denote the vector of observed dependent variables, with \( n \) rows.</li>
-<li>\( X \in \mathbf R^{m} \) denote the design matrix with \( m \) columns and \( n \) rows, containing all observed vectors of independent variables \( \boldsymbol x_i \) as rows.</li>
-<li>\( R(t_i) \) denote the set of observations still alive at time \( t_i \)</li>
+<li><img class="formulaInl" alt="$ \boldsymbol t \in \mathbf R^{m} $" src="form_385.png"/> denote the vector of observed dependent variables, with <img class="formulaInl" alt="$ n $" src="form_10.png"/> rows.</li>
+<li><img class="formulaInl" alt="$ X \in \mathbf R^{m} $" src="form_386.png"/> denote the design matrix with <img class="formulaInl" alt="$ m $" src="form_291.png"/> columns and <img class="formulaInl" alt="$ n $" src="form_10.png"/> rows, containing all observed vectors of independent variables <img class="formulaInl" alt="$ \boldsymbol x_i $" src="form_99.png"/> as rows.</li>
+<li><img class="formulaInl" alt="$ R(t_i) $" src="form_387.png"/> denote the set of observations still alive at time <img class="formulaInl" alt="$ t_i $" src="form_388.png"/></li>
</ul>
<p>Note that this model <b>does not</b> include a <b>constant term</b>, and the data cannot contain a column of 1s.</p>
<p>By definition, </p><p class="formulaDsp">
-\[ P[T_k = t_i | \boldsymbol R(t_i)] = \frac{e^{\beta^T x_k} }{ \sum_{j \in R(t_i)} e^{\beta^T x_j}}. \,. \]
+<img class="formulaDsp" alt="\[ P[T_k = t_i | \boldsymbol R(t_i)] = \frac{e^{\beta^T x_k} }{ \sum_{j \in R(t_i)} e^{\beta^T x_j}}. \,. \]" src="form_389.png"/>
</p>
<p>The <b>partial likelihood </b>function can now be generated as the product of conditional probabilities: </p><p class="formulaDsp">
-\[ \mathcal L = \prod_{i = 1}^n \left( \frac{e^{\beta^T x_i}}{ \sum_{j \in R(t_i)} e^{\beta^T x_j}} \right). \]
+<img class="formulaDsp" alt="\[ \mathcal L = \prod_{i = 1}^n \left( \frac{e^{\beta^T x_i}}{ \sum_{j \in R(t_i)} e^{\beta^T x_j}} \right). \]" src="form_390.png"/>
</p>
<p>The log-likelihood form of this equation is </p><p class="formulaDsp">
-\[ L = \sum_{i = 1}^n \left[ \beta^T x_i - \log\left(\sum_{j \in R(t_i)} e^{\beta^T x_j }\right) \right]. \]
+<img class="formulaDsp" alt="\[ L = \sum_{i = 1}^n \left[ \beta^T x_i - \log\left(\sum_{j \in R(t_i)} e^{\beta^T x_j }\right) \right]. \]" src="form_391.png"/>
</p>
<p>Using this score function and Hessian matrix, the partial likelihood can be maximized using the <b> Newton-Raphson algorithm</b>. <b>Breslow's method</b> is used to resolved tied times of deaths. The time of death for two records are considered "equal" if they differ by less than 1.0e-6</p>
-<p>The inverse of the Hessian matrix, evaluated at the estimate of \( \boldsymbol \beta \), can be used as an <b>approximate variance-covariance matrix </b> for the estimate, and used to produce approximate <b>standard errors</b> for the regression coefficients.</p>
+<p>The inverse of the Hessian matrix, evaluated at the estimate of <img class="formulaInl" alt="$ \boldsymbol \beta $" src="form_384.png"/>, can be used as an <b>approximate variance-covariance matrix </b> for the estimate, and used to produce approximate <b>standard errors</b> for the regression coefficients.</p>
<p class="formulaDsp">
-\[ \mathit{se}(c_i) = \left( (H)^{-1} \right)_{ii} \,. \]
+<img class="formulaDsp" alt="\[ \mathit{se}(c_i) = \left( (H)^{-1} \right)_{ii} \,. \]" src="form_392.png"/>
</p>
<p> The Wald z-statistic is </p><p class="formulaDsp">
-\[ z_i = \frac{c_i}{\mathit{se}(c_i)} \,. \]
+<img class="formulaDsp" alt="\[ z_i = \frac{c_i}{\mathit{se}(c_i)} \,. \]" src="form_109.png"/>
</p>
-<p>The Wald \( p \)-value for coefficient \( i \) gives the probability (under the assumptions inherent in the Wald test) of seeing a value at least as extreme as the one observed, provided that the null hypothesis ( \( c_i = 0 \)) is true. Letting \( F \) denote the cumulative density function of a standard normal distribution, the Wald \( p \)-value for coefficient \( i \) is therefore </p><p class="formulaDsp">
-\[ p_i = \Pr(|Z| \geq |z_i|) = 2 \cdot (1 - F( |z_i| )) \]
+<p>The Wald <img class="formulaInl" alt="$ p $" src="form_110.png"/>-value for coefficient <img class="formulaInl" alt="$ i $" src="form_32.png"/> gives the probability (under the assumptions inherent in the Wald test) of seeing a value at least as extreme as the one observed, provided that the null hypothesis ( <img class="formulaInl" alt="$ c_i = 0 $" src="form_111.png"/>) is true. Letting <img class="formulaInl" alt="$ F $" src="form_112.png"/> denote the cumulative density function of a standard normal distribution, the Wald <img class="formulaInl" alt="$ p $" src="form_110.png"/>-value for coefficient <img class="formulaInl" alt="$ i $" src="form_32.png"/> is therefore </p><p class="formulaDsp">
+<img class="formulaDsp" alt="\[ p_i = \Pr(|Z| \geq |z_i|) = 2 \cdot (1 - F( |z_i| )) \]" src="form_113.png"/>
</p>
-<p> where \( Z \) is a standard normally distributed random variable.</p>
-<p>The condition number is computed as \( \kappa(H) \) during the iteration immediately <em>preceding</em> convergence (i.e., \( A \) is computed using the coefficients of the previous iteration). A large condition number (say, more than 1000) indicates the presence of significant multicollinearity.</p>
+<p> where <img class="formulaInl" alt="$ Z $" src="form_114.png"/> is a standard normally distributed random variable.</p>
+<p>The condition number is computed as <img class="formulaInl" alt="$ \kappa(H) $" src="form_393.png"/> during the iteration immediately <em>preceding</em> convergence (i.e., <img class="formulaInl" alt="$ A $" src="form_13.png"/> is computed using the coefficients of the previous iteration). A large condition number (say, more than 1000) indicates the presence of significant multicollinearity.</p>
<p><a class="anchor" id="Literature"></a></p><dl class="section user"><dt>Literature</dt><dd></dd></dl>
<p>A somewhat random selection of nice write-ups, with valuable pointers into further literature:</p>
<p>[1] John Fox: Cox Proportional-Hazards Regression for Survival Data, Appendix to An R and S-PLUS companion to Applied Regression Feb 2012, <a href="http://cran.r-project.org/doc/contrib/Fox-Companion/appendix-cox-regression.pdf">http://cran.r-project.org/doc/contrib/Fox-Companion/appendix-cox-regression.pdf</a></p>
<p>[2] Stephen J Walters: What is a Cox model? <a href="http://www.medicine.ox.ac.uk/bandolier/painres/download/whatis/cox_model.pdf">http://www.medicine.ox.ac.uk/bandolier/painres/download/whatis/cox_model.pdf</a></p>
<p><a class="anchor" id="notes"></a></p><dl class="section user"><dt>Notes</dt><dd></dd></dl>
-<p>If number of ties in the source table is very large, a memory allocation error may be raised. The limitation is about \((10^8 / m)\), where \(m\) is number of featrues. For instance, if there are 100 featrues, the number of ties should be fewer than 1 million.</p>
+<p>If number of ties in the source table is very large, a memory allocation error may be raised. The limitation is about <img class="formulaInl" alt="$(10^8 / m)$" src="form_394.png"/>, where <img class="formulaInl" alt="$m$" src="form_313.png"/> is number of featrues. For instance, if there are 100 featrues, the number of ties should be fewer than 1 million.</p>
<p><a class="anchor" id="related"></a></p><dl class="section user"><dt>Related Topics</dt><dd></dd></dl>
<p>File <a class="el" href="cox__prop__hazards_8sql__in.html" title="SQL functions for cox proportional hazards. ">cox_prop_hazards.sql_in</a> documenting the functions</p>
</div><!-- contents -->
@@ -467,7 +461,7 @@ p_value | {0.991994376850758,0.878855984657948}
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:10 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__crf.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__crf.html b/docs/latest/group__grp__crf.html
index a48260b..f2b804f 100644
--- a/docs/latest/group__grp__crf.html
+++ b/docs/latest/group__grp__crf.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -145,7 +139,7 @@ $(document).ready(function(){initNavTree('group__grp__crf.html','');});
<li>Unknown Feature: fired when the current token is not observed in the trained dictionary for at least a certain number of times (default 1).</li>
<li>Regex Feature: fired when the current token can be matched by a regular expression.</li>
</ul>
-<p>A Viterbi implementation is also provided to get the best label sequence and the conditional probability \( \Pr( \text{best label sequence} \mid \text{sequence}) \).</p>
+<p>A Viterbi implementation is also provided to get the best label sequence and the conditional probability <img class="formulaInl" alt="$ \Pr( \text{best label sequence} \mid \text{sequence}) $" src="form_55.png"/>.</p>
<p>Following steps are required for CRF Learning and Inference:</p><ol type="1">
<li><a href="#train_feature">Training Feature Generation</a></li>
<li><a href="#train">CRF Training</a></li>
@@ -366,7 +360,7 @@ vcrf_label(test_segment_tbl,
'<em>crf_weights_tbl</em>',
'<em>viterbi_mtbl</em>',
'<em>viterbi_rtbl</em>');</pre></li>
-<li>Run the Viterbi function to get the best label sequence and the conditional probability \( \Pr( \text{best label sequence} \mid \text{sequence}) \). <pre>SELECT madlib.vcrf_label(
+<li>Run the Viterbi function to get the best label sequence and the conditional probability <img class="formulaInl" alt="$ \Pr( \text{best label sequence} \mid \text{sequence}) $" src="form_55.png"/>. <pre>SELECT madlib.vcrf_label(
'<em>test_segment_tbl</em>',
'<em>viterbi_mtbl</em>',
'<em>viterbi_rtbl</em>',
@@ -566,42 +560,42 @@ SELECT * FROM extracted_best_labels;
</ol>
<p><a class="anchor" id="background"></a></p><dl class="section user"><dt>Technical Background</dt><dd></dd></dl>
<p>Specifically, a linear-chain CRF is a distribution defined by </p><p class="formulaDsp">
-\[ p_\lambda(\boldsymbol y | \boldsymbol x) = \frac{\exp{\sum_{m=1}^M \lambda_m F_m(\boldsymbol x, \boldsymbol y)}}{Z_\lambda(\boldsymbol x)} \,. \]
+<img class="formulaDsp" alt="\[ p_\lambda(\boldsymbol y | \boldsymbol x) = \frac{\exp{\sum_{m=1}^M \lambda_m F_m(\boldsymbol x, \boldsymbol y)}}{Z_\lambda(\boldsymbol x)} \,. \]" src="form_56.png"/>
</p>
<p>where</p><ul>
-<li>\( F_m(\boldsymbol x, \boldsymbol y) = \sum_{i=1}^n f_m(y_i,y_{i-1},x_i) \) is a global feature function that is a sum along a sequence \( \boldsymbol x \) of length \( n \)</li>
-<li>\( f_m(y_i,y_{i-1},x_i) \) is a local feature function dependent on the current token label \( y_i \), the previous token label \( y_{i-1} \), and the observation \( x_i \)</li>
-<li>\( \lambda_m \) is the corresponding feature weight</li>
-<li>\( Z_\lambda(\boldsymbol x) \) is an instance-specific normalizer <p class="formulaDsp">
-\[ Z_\lambda(\boldsymbol x) = \sum_{\boldsymbol y'} \exp{\sum_{m=1}^M \lambda_m F_m(\boldsymbol x, \boldsymbol y')} \]
+<li><img class="formulaInl" alt="$ F_m(\boldsymbol x, \boldsymbol y) = \sum_{i=1}^n f_m(y_i,y_{i-1},x_i) $" src="form_57.png"/> is a global feature function that is a sum along a sequence <img class="formulaInl" alt="$ \boldsymbol x $" src="form_58.png"/> of length <img class="formulaInl" alt="$ n $" src="form_10.png"/></li>
+<li><img class="formulaInl" alt="$ f_m(y_i,y_{i-1},x_i) $" src="form_59.png"/> is a local feature function dependent on the current token label <img class="formulaInl" alt="$ y_i $" src="form_60.png"/>, the previous token label <img class="formulaInl" alt="$ y_{i-1} $" src="form_61.png"/>, and the observation <img class="formulaInl" alt="$ x_i $" src="form_62.png"/></li>
+<li><img class="formulaInl" alt="$ \lambda_m $" src="form_63.png"/> is the corresponding feature weight</li>
+<li><img class="formulaInl" alt="$ Z_\lambda(\boldsymbol x) $" src="form_64.png"/> is an instance-specific normalizer <p class="formulaDsp">
+<img class="formulaDsp" alt="\[ Z_\lambda(\boldsymbol x) = \sum_{\boldsymbol y'} \exp{\sum_{m=1}^M \lambda_m F_m(\boldsymbol x, \boldsymbol y')} \]" src="form_65.png"/>
</p>
</li>
</ul>
-<p>A linear-chain CRF estimates the weights \( \lambda_m \) by maximizing the log-likelihood of a given training set \( T=\{(x_k,y_k)\}_{k=1}^N \).</p>
+<p>A linear-chain CRF estimates the weights <img class="formulaInl" alt="$ \lambda_m $" src="form_63.png"/> by maximizing the log-likelihood of a given training set <img class="formulaInl" alt="$ T=\{(x_k,y_k)\}_{k=1}^N $" src="form_66.png"/>.</p>
<p>The log-likelihood is defined as </p><p class="formulaDsp">
-\[ \ell_{\lambda}=\sum_k \log p_\lambda(y_k|x_k) =\sum_k[\sum_{m=1}^M \lambda_m F_m(x_k,y_k) - \log Z_\lambda(x_k)] \]
+<img class="formulaDsp" alt="\[ \ell_{\lambda}=\sum_k \log p_\lambda(y_k|x_k) =\sum_k[\sum_{m=1}^M \lambda_m F_m(x_k,y_k) - \log Z_\lambda(x_k)] \]" src="form_67.png"/>
</p>
<p>and the zero of its gradient </p><p class="formulaDsp">
-\[ \nabla \ell_{\lambda}=\sum_k[F(x_k,y_k)-E_{p_\lambda(Y|x_k)}[F(x_k,Y)]] \]
+<img class="formulaDsp" alt="\[ \nabla \ell_{\lambda}=\sum_k[F(x_k,y_k)-E_{p_\lambda(Y|x_k)}[F(x_k,Y)]] \]" src="form_68.png"/>
</p>
<p>is found since the maximum likelihood is reached when the empirical average of the global feature vector equals its model expectation. The MADlib implementation uses limited-memory BFGS (L-BFGS), a limited-memory variation of the Broyden–Fletcher–Goldfarb–Shanno (BFGS) update, a quasi-Newton method for unconstrained optimization.</p>
-<p>\(E_{p_\lambda(Y|x)}[F(x,Y)]\) is found by using a variant of the forward-backward algorithm: </p><p class="formulaDsp">
-\[ E_{p_\lambda(Y|x)}[F(x,Y)] = \sum_y p_\lambda(y|x)F(x,y) = \sum_i\frac{\alpha_{i-1}(f_i*M_i)\beta_i^T}{Z_\lambda(x)} \]
+<p><img class="formulaInl" alt="$E_{p_\lambda(Y|x)}[F(x,Y)]$" src="form_69.png"/> is found by using a variant of the forward-backward algorithm: </p><p class="formulaDsp">
+<img class="formulaDsp" alt="\[ E_{p_\lambda(Y|x)}[F(x,Y)] = \sum_y p_\lambda(y|x)F(x,y) = \sum_i\frac{\alpha_{i-1}(f_i*M_i)\beta_i^T}{Z_\lambda(x)} \]" src="form_70.png"/>
</p>
<p class="formulaDsp">
-\[ Z_\lambda(x) = \alpha_n.1^T \]
+<img class="formulaDsp" alt="\[ Z_\lambda(x) = \alpha_n.1^T \]" src="form_71.png"/>
</p>
-<p> where \(\alpha_i\) and \( \beta_i\) are the forward and backward state cost vectors defined by </p><p class="formulaDsp">
-\[ \alpha_i = \begin{cases} \alpha_{i-1}M_i, & 0<i<=n\\ 1, & i=0 \end{cases}\\ \]
+<p> where <img class="formulaInl" alt="$\alpha_i$" src="form_72.png"/> and <img class="formulaInl" alt="$ \beta_i$" src="form_73.png"/> are the forward and backward state cost vectors defined by </p><p class="formulaDsp">
+<img class="formulaDsp" alt="\[ \alpha_i = \begin{cases} \alpha_{i-1}M_i, & 0<i<=n\\ 1, & i=0 \end{cases}\\ \]" src="form_74.png"/>
</p>
<p class="formulaDsp">
-\[ \beta_i^T = \begin{cases} M_{i+1}\beta_{i+1}^T, & 1<=i<n\\ 1, & i=n \end{cases} \]
+<img class="formulaDsp" alt="\[ \beta_i^T = \begin{cases} M_{i+1}\beta_{i+1}^T, & 1<=i<n\\ 1, & i=n \end{cases} \]" src="form_75.png"/>
</p>
<p>To avoid overfitting, we penalize the likelihood with a spherical Gaussian weight prior: </p><p class="formulaDsp">
-\[ \ell_{\lambda}^\prime=\sum_k[\sum_{m=1}^M \lambda_m F_m(x_k,y_k) - \log Z_\lambda(x_k)] - \frac{\lVert \lambda \rVert^2}{2\sigma ^2} \]
+<img class="formulaDsp" alt="\[ \ell_{\lambda}^\prime=\sum_k[\sum_{m=1}^M \lambda_m F_m(x_k,y_k) - \log Z_\lambda(x_k)] - \frac{\lVert \lambda \rVert^2}{2\sigma ^2} \]" src="form_76.png"/>
</p>
<p class="formulaDsp">
-\[ \nabla \ell_{\lambda}^\prime=\sum_k[F(x_k,y_k) - E_{p_\lambda(Y|x_k)}[F(x_k,Y)]] - \frac{\lambda}{\sigma ^2} \]
+<img class="formulaDsp" alt="\[ \nabla \ell_{\lambda}^\prime=\sum_k[F(x_k,y_k) - E_{p_\lambda(Y|x_k)}[F(x_k,Y)]] - \frac{\lambda}{\sigma ^2} \]" src="form_77.png"/>
</p>
<dl class="section user"><dt>Literature</dt><dd>[1] F. Sha, F. Pereira. Shallow Parsing with Conditional Random Fields, <a href="http://www-bcf.usc.edu/~feisha/pubs/shallow03.pdf">http://www-bcf.usc.edu/~feisha/pubs/shallow03.pdf</a></dd></dl>
<p>[2] Wikipedia, Conditional Random Field, <a href="http://en.wikipedia.org/wiki/Conditional_random_field">http://en.wikipedia.org/wiki/Conditional_random_field</a></p>
@@ -617,7 +611,7 @@ SELECT * FROM extracted_best_labels;
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:10 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__data__prep.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__data__prep.html b/docs/latest/group__grp__data__prep.html
index f276846..fce1a96 100644
--- a/docs/latest/group__grp__data__prep.html
+++ b/docs/latest/group__grp__data__prep.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -112,7 +106,7 @@ $(document).ready(function(){initNavTree('group__grp__data__prep.html','');});
<div class="header">
<div class="headertitle">
-<div class="title">Encoding Categorical Variables<div class="ingroups"><a class="el" href="group__grp__utility__functions.html">Utility Functions</a></div></div> </div>
+<div class="title">Encoding Categorical Variables<div class="ingroups"><a class="el" href="group__grp__datatrans.html">Data Types and Transformations</a></div></div> </div>
</div><!--header-->
<div class="contents">
<div class="toc"><b>Contents</b> </p><ul>
@@ -241,7 +235,7 @@ select * from abalone_out;
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:10 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__datatrans.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__datatrans.html b/docs/latest/group__grp__datatrans.html
index 64e6ad8..af93cf2 100644
--- a/docs/latest/group__grp__datatrans.html
+++ b/docs/latest/group__grp__datatrans.html
@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<meta name="keywords" content="madlib,postgres,greenplum,machine learning,data mining,deep learning,ensemble methods,data science,market basket analysis,affinity analysis,pca,lda,regression,elastic net,huber white,proportional hazards,k-means,latent dirichlet allocation,bayes,support vector machines,svm"/>
-<title>MADlib: Data Types and Transforms</title>
+<title>MADlib: Data Types and Transformations</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -114,24 +108,33 @@ $(document).ready(function(){initNavTree('group__grp__datatrans.html','');});
<div class="summary">
<a href="#groups">Modules</a> </div>
<div class="headertitle">
-<div class="title">Data Types and Transforms</div> </div>
+<div class="title">Data Types and Transformations</div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
-<p>Data types and operations </p>
+<p>Data types and transformation operations </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group__grp__arraysmatrix"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__grp__arraysmatrix.html">Arrays and Matrices</a></td></tr>
<tr class="memdesc:group__grp__arraysmatrix"><td class="mdescLeft"> </td><td class="mdescRight">Mathematical operations for arrays and matrices. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:group__grp__pca"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__grp__pca.html">Dimensionality Reduction</a></td></tr>
+<tr class="memdesc:group__grp__pca"><td class="mdescLeft"> </td><td class="mdescRight">A collection of methods for dimensionality reduction. <br /></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:group__grp__data__prep"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__grp__data__prep.html">Encoding Categorical Variables</a></td></tr>
+<tr class="memdesc:group__grp__data__prep"><td class="mdescLeft"> </td><td class="mdescRight">Provides utility functions helpful for data preparation before modeling. <br /></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:group__grp__stemmer"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__grp__stemmer.html">Stemming</a></td></tr>
+<tr class="memdesc:group__grp__stemmer"><td class="mdescLeft"> </td><td class="mdescRight">Provides porter stemmer operations supporting other MADlib modules. <br /></td></tr>
+<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:10 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__datatrans.js
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__datatrans.js b/docs/latest/group__grp__datatrans.js
index 1ba1fb1..74fa1e9 100644
--- a/docs/latest/group__grp__datatrans.js
+++ b/docs/latest/group__grp__datatrans.js
@@ -1,4 +1,7 @@
var group__grp__datatrans =
[
- [ "Arrays and Matrices", "group__grp__arraysmatrix.html", "group__grp__arraysmatrix" ]
+ [ "Arrays and Matrices", "group__grp__arraysmatrix.html", "group__grp__arraysmatrix" ],
+ [ "Dimensionality Reduction", "group__grp__pca.html", "group__grp__pca" ],
+ [ "Encoding Categorical Variables", "group__grp__data__prep.html", null ],
+ [ "Stemming", "group__grp__stemmer.html", null ]
];
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-madlib-site/blob/c506dd05/docs/latest/group__grp__decision__tree.html
----------------------------------------------------------------------
diff --git a/docs/latest/group__grp__decision__tree.html b/docs/latest/group__grp__decision__tree.html
index e5d6ce8..1b2feb0 100644
--- a/docs/latest/group__grp__decision__tree.html
+++ b/docs/latest/group__grp__decision__tree.html
@@ -24,14 +24,8 @@
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
-<script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
- jax: ["input/TeX","output/HTML-CSS"],
-});
-</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
-<script type="text/javascript" src="navtree_hack.js"></script>
+<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
@@ -40,7 +34,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45382226-1', 'auto');
+ ga('create', 'UA-45382226-1', 'madlib.net');
ga('send', 'pageview');
</script>
</head>
@@ -50,10 +44,10 @@
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
- <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
+ <td id="projectlogo"><a href="http://madlib.net"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
- <span id="projectnumber">1.8</span>
+ <span id="projectnumber">1.9</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
@@ -685,7 +679,7 @@ SELECT s.id, mpg, estimated_mpg FROM prediction_results p, mt_cars s where s.id
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
- <li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
+ <li class="footer">Generated on Thu Apr 7 2016 14:24:10 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>