mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-23 11:29:43 +01:00
2 lines
14 KiB
HTML
2 lines
14 KiB
HTML
|
<!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" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>TensorFlow.Minimize</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">tensorflow-ops-0.3.0.0: Friendly layer around TensorFlow bindings.</span><ul class="links" id="page-menu"><li><a href="src/TensorFlow.Minimize.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">TensorFlow.Minimize</p></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">type</span> <a href="#t:Minimizer">Minimizer</a> a = <span class="keyword">forall</span> m. <a href="../tensorflow-0.3.0.0/TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => [<a href="TensorFlow-Variable.html#t:Variable" title="TensorFlow.Variable">Variable</a> a] -> [<a href="../tensorflow-0.3.0.0/TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="../tensorflow-0.3.0.0/TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">Value</a> a] -> m <a href="../tensorflow-0.3.0.0/TensorFlow-Output.html#t:ControlNode" title="TensorFlow.Output">ControlNode</a></li><li class="src short"><a href="#v:minimizeWith">minimizeWith</a> :: (<a href="../tensorflow-0.3.0.0/TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m, <a href="TensorFlow-Gradient.html#t:GradientCompatible" title="TensorFlow.Gradient">GradientCompatible</a> a) => <a href="TensorFlow-Minimize.html#t:Minimizer" title="TensorFlow.Minimize">Minimizer</a> a -> <a href="../tensorflow-0.3.0.0/TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> v a -> [<a href="TensorFlow-Variable.html#t:Variable" title="TensorFlow.Variable">Variable</a> a] -> m <a href="../tensorflow-0.3.0.0/TensorFlow-Output.html#t:ControlNode" title="TensorFlow.Output">ControlNode</a></li><li class="src short"><a href="#v:gradientDescent">gradientDescent</a> :: <a href="TensorFlow-Gradient.html#t:GradientCompatible" title="TensorFlow.Gradient">GradientCompatible</a> a => a -> <a href="TensorFlow-Minimize.html#t:Minimizer" title="TensorFlow.Minimize">Minimizer</a> a</li><li class="src short"><span class="keyword">type</span> <a href="#t:OneOfAdamDataTypes">OneOfAdamDataTypes</a> t = <a href="../tensorflow-0.3.0.0/TensorFlow-Types.html#t:OneOf" title="TensorFlow.Types">OneOf</a> '[<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>, <a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Dat
|
||
|
the loss so that users can apply transformations to the gradients.</p></div></div><div class="top"><p class="src"><a id="v:minimizeWith" class="def">minimizeWith</a> <a href="src/TensorFlow.Minimize.html#minimizeWith" class="link">Source</a> <a href="#v:minimizeWith" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.3.0.0/TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m, <a href="TensorFlow-Gradient.html#t:GradientCompatible" title="TensorFlow.Gradient">GradientCompatible</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="TensorFlow-Minimize.html#t:Minimizer" title="TensorFlow.Minimize">Minimizer</a> a</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.3.0.0/TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> v a</td><td class="doc"><p>Loss.</p></td></tr><tr><td class="src">-> [<a href="TensorFlow-Variable.html#t:Variable" title="TensorFlow.Variable">Variable</a> a]</td><td class="doc"><p>Parameters of the loss function.</p></td></tr><tr><td class="src">-> m <a href="../tensorflow-0.3.0.0/TensorFlow-Output.html#t:ControlNode" title="TensorFlow.Output">ControlNode</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Convenience wrapper around <code><a href="TensorFlow-Gradient.html#v:gradients" title="TensorFlow.Gradient">gradients</a></code> and a <code><a href="TensorFlow-Minimize.html#t:Minimizer" title="TensorFlow.Minimize">Minimizer</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:gradientDescent" class="def">gradientDescent</a> <a href="src/TensorFlow.Minimize.html#gradientDescent" class="link">Source</a> <a href="#v:gradientDescent" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="TensorFlow-Gradient.html#t:GradientCompatible" title="TensorFlow.Gradient">GradientCompatible</a> a</td><td class="doc empty"> </td></tr><tr><td class="src">=> a</td><td class="doc"><p>Learning rate.</p></td></tr><tr><td class="src">-> <a href="TensorFlow-Minimize.html#t:Minimizer" title="TensorFlow.Minimize">Minimizer</a> a</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Perform one step of the gradient descent algorithm.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:OneOfAdamDataTypes" class="def">OneOfAdamDataTypes</a> t = <a href="../tensorflow-0.3.0.0/TensorFlow-Types.html#t:OneOf" title="TensorFlow.Types">OneOf</a> '[<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>, <a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a>, <a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a>, <a href="../base-4.13.0.0/Data-Word.html#t:Word32" title="Data.Word">Word32</a>, <a href="../base-4.13.0.0/Data-Word.html#t:Word64" title="Data.Word">Word64</a>, <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a>, <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>, <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>] t <a href="src/TensorFlow.Minimize.html#OneOfAdamDataTypes" class="link">Source</a> <a href="#t:OneOfAdamDataTypes" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:AdamConfig" class="def">AdamConfig</a> t <a href="src/TensorFlow.Minimize.html#AdamConfig" cl
|