<!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/html; charset=UTF-8" /><title>NaiveBayes.NaiveBayesInterface</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_NaiveBayes-NaiveBayesInterface.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption empty">&nbsp;</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">NaiveBayes.NaiveBayesInterface</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:crossValidate">crossValidate</a> :: Double -&gt; <a href="Structures-Structures.html#t:PriorType">PriorType</a> -&gt; <a href="Structures-Structures.html#t:Distribution">Distribution</a> -&gt; <a href="Structures-Definitions.html#t:FPath">FPath</a> -&gt; IO <a href="Structures-Definitions.html#t:Performance">Performance</a></li><li class="src short"><a href="#v:traintest">traintest</a> :: <a href="Structures-Structures.html#t:PriorType">PriorType</a> -&gt; <a href="Structures-Structures.html#t:Distribution">Distribution</a> -&gt; <a href="Structures-Definitions.html#t:TrainPath">TrainPath</a> -&gt; <a href="Structures-Definitions.html#t:TestPath">TestPath</a> -&gt; String -&gt; IO ()</li><li class="src short"><a href="#v:makeObjectFromFile">makeObjectFromFile</a> :: <a href="Structures-Structures.html#t:PriorType">PriorType</a> -&gt; <a href="Structures-Structures.html#t:Distribution">Distribution</a> -&gt; FilePath -&gt; IO <a href="NaiveBayes-NaiveBayes.html#t:NaiveBayes">NaiveBayes</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:crossValidate" class="def">crossValidate</a> :: Double -&gt; <a href="Structures-Structures.html#t:PriorType">PriorType</a> -&gt; <a href="Structures-Structures.html#t:Distribution">Distribution</a> -&gt; <a href="Structures-Definitions.html#t:FPath">FPath</a> -&gt; IO <a href="Structures-Definitions.html#t:Performance">Performance</a></p><div class="doc"><p>crossValidates the given file and returns the performace of the classfier
</p></div></div><div class="top"><p class="src"><a name="v:traintest" class="def">traintest</a> :: <a href="Structures-Structures.html#t:PriorType">PriorType</a> -&gt; <a href="Structures-Structures.html#t:Distribution">Distribution</a> -&gt; <a href="Structures-Definitions.html#t:TrainPath">TrainPath</a> -&gt; <a href="Structures-Definitions.html#t:TestPath">TestPath</a> -&gt; String -&gt; IO ()</p><div class="doc"><p>trains the classifier on the train file and tests it on the test file and writes the classes in a file
</p></div></div><div class="top"><p class="src"><a name="v:makeObjectFromFile" class="def">makeObjectFromFile</a> :: <a href="Structures-Structures.html#t:PriorType">PriorType</a> -&gt; <a href="Structures-Structures.html#t:Distribution">Distribution</a> -&gt; FilePath -&gt; IO <a href="NaiveBayes-NaiveBayes.html#t:NaiveBayes">NaiveBayes</a></p><div class="doc"><p>Takes the data from a file and fits it with the given priortype and distribution to give IO (naive bayes object)
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.11.0</p></div></body></html>