%DeepSee.extensions.utils.LDA
Class %DeepSee.extensions.utils.LDA Extends (%Library.Persistent, %DeepSee.extensions.BlackBox) [ System = 4 ]
This code serves for calculating a linear discriminant analysis (LDA)
Properties
GroupMean
Property GroupMean As %Double [ MultiDimensional ];
PooledInverseCovariance
Property PooledInverseCovariance As %Double [ MultiDimensional ];
Probability
Property Probability As %Double [ MultiDimensional ];
Groups
Property Groups [ MultiDimensional ];
Confusion
Property Confusion [ MultiDimensional ];
NGroups
Property NGroups As %Integer;
Dim
Property Dim As %Integer;
UseMahalanobisDistance
Property UseMahalanobisDistance As %Boolean [ InitialExpression = 0 ];
Name
Property Name As %String(MAXLEN = 256);
Methods
%OnOpen
Method %OnOpen() As %Status [ Private, ServerOnly = 1 ]
This callback method is invoked by the %Open method to provide notification that the object specified by oid is being opened.
If this method returns an error then the object will not be opened.
Create
Method Create(N As %Integer, M As %Integer, ByRef data As %Double, ByRef groups As %Integer, p As %Boolean) As %Status
getConfusionMatrixForTestSet
Method getConfusionMatrixForTestSet(rs As %ResultSet, i1 As %Integer, dim As %Integer, Output C, Output r As %Double) As %Status
printConfusionMatrix
Method printConfusionMatrix(ByRef confusion = "") As %Status
getSensitivity
Method getSensitivity(g, Output sc As %Status, ByRef confusion = "") As %Double
getSpecificity
Method getSpecificity(g, Output sc As %Status, ByRef confusion = "") As %Double
GetDF
Method GetDF(ByRef x, Output fv, verobse As %Boolean = 1) As %Status
getCovector
Method getCovector(target As %String, Output V) As %Status
GetMajorContributors
Method GetMajorContributors(targetPos As %String, targetNeg As %String, margin As %Double, Output listPos As %List, Output listNeg As %List) As %Status
predict
Method predict(ByRef x, Output sc As %Status, Output maxf As %Double, Output f) As %String
GetMahalanobisDistance
Method GetMahalanobisDistance(ByRef x, Output fv, verobse As %Boolean = 0) As %Status
%OnNew
Method %OnNew(name As %String) As %Status [ Private, ServerOnly = 1 ]
This callback method is invoked by the %New method to provide notification that a new instance of an object is being created.
If this method returns an error then the object will not be created.
It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:
Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.
Test
ClassMethod Test()