Documentation
¶
Index ¶
- func ClassifyEqualWidth(data []float64, numBins int) ([][]float64, error)
- func DiscreteMean(v []float64) float64
- func DiscreteStd(v []float64) float64
- func DiscreteVariance(v []float64) float64
- func FeatureCrossing(X, Y []float64) []float64
- func GetMid(data []float64) (result float64)
- func GetQuantile2(data float64) (min, max float64)
- func GetQuantile3(data float64) (min, mid, max float64)
- func GetScoreHMLM(X, Y []float64) (result []float64, medX, medY, medP float64)
- func GetScoreWeightedSum(indicators [][]float64, weights []float64) ([]float64, error)
- func GetScoreWeightedSumFloat64(data []float64, weights []float64) (result float64)
- func LinearCombination(X, Y []float64, weightX, weightY float64) []float64
- func Normalize(data []float64) (result []float64)
- func ZScoreXY(x float64, y float64) (x1 float64, y1 float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClassifyEqualWidth ¶
ClassifyEqualWidth 等宽区间划分算法 data: 数据 numBins: 切分数量 * 使用方法: 1. 使用本方法输出数据,然后对应数据的值就是切分单元 2. 切分单元的key采用[0]~[n]为基准
func FeatureCrossing ¶
FeatureCrossing 计算X和Y的乘积来实现特征交叉
func GetQuantile2 ¶
GetQuantile2 获取一个浮点数的2分位数 反馈两组数据,分别对应最小值、最大值区间
func GetQuantile3 ¶
GetQuantile3 获取一个浮点数的3分位数 反馈三组数据,分别对应最小值、中间值、最大值区间
func GetScoreHMLM ¶
GetScoreHMLM 根据X和Y的值以及它们的中位数来计算得分 * 用途: 可以将XY轴两组数据,输出为一组数据,形成归一化处理
得分分布: 1-4代表象限位置 | 2中 | 1高 | | 3低 | 4中 |
使用方法:
- 根据得分结果,可以将数据转换为坐标,进行可视化展示,必定为线性值
- medX和medY可以用于对原始数据进行区域识别
- medP为最终得分的中位数,可以用于对得分进行区域识别,例如将区域切分为2等分; 如果需切分3等分,可medP=0~0.25; medP=0.25~0.75; medP=0.75~1 medP*0.25 ; medP*0.25~medP*0.75; medP=0.75 第二种切分方式为另外一种3等分,medP=0~0.33; medP=0.33~0.66; medP=0.66~1
- 如果采用medXY切分,那么更容易业务人员理解;如果采用medP切分,比较倾向于算法领域。可根据实际需求切分
func GetScoreWeightedSum ¶
GetScoreWeightedSum 计算加权输出上级得分
func GetScoreWeightedSumFloat64 ¶
GetScoreWeightedSumFloat64 计算一组浮点数在指定权重关系的最终得分
func LinearCombination ¶
LinearCombination 计算线性组合关系
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.