Skip to content

Commit 38575cb

Browse files
committed
Fix bug in Softmax routine's meta data
The Softmax routine's meta data in maths.ini did not include the required Types unit in the value of the Units key. Fixes #61
1 parent 0fb84eb commit 38575cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collection/maths.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ DisplayName=Softmax
20092009
DescEx="<p>Applies the <a href="https://en.wikipedia.org/wiki/Softmax_function"><em>softmax</em></a> function to each element of floating point array <var>A</var> and normalizes them into a probability distribution proportional to the exponentials of the elements of <var>A</var>. The normalised values are returned as an array of the same size as <var>A</var>.</p><p>An <var>EArgumentException</var> exception is raised if <var>A</var> is empty.</p>"
20102010
Extra="<p>The <em>softmax</em> function is often used in statistics and in machine learning. It is closely related to the <em>log-sum-exp</em> (aka <em>LSE</em>) function since, for vector <strong>x</strong>=(x1,...,xn), <em>softmax(<strong>x</strong>)=exp[<strong>x</strong>&#8722;LSE(<strong>x</strong>)]</em>.</p>"
20112011
Kind=routine
2012-
Units=SysUtils
2012+
Units=SysUtils,Types
20132013
Depends=LSE
20142014
SeeAlso=LSE,MaxOfArray_Double
20152015
TestInfo=advanced
@@ -2018,7 +2018,7 @@ AdvancedTest.URL="https://github.com/delphidabbler/code-snippets/tree/master/tes
20182018
Snip=664.dat
20192019
DelphiXE=Y
20202020
Delphi12A=Y
2021-
Delphi13F=N
2021+
Delphi13F=Y
20222022

20232023
[Median_Double]
20242024
DisplayName="Median (Double overload)"

0 commit comments

Comments
 (0)