mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-30 13:48:57 +08:00
receiver name Inst should be consistent with previous receiver name inst for Instances
This commit is contained in:
parent
627a5537d3
commit
8f154559f1
@ -350,13 +350,13 @@ func (inst *Instances) GetClassDistribution() map[string]int {
|
|||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Inst *Instances) GetClassAttrPtr() *Attribute {
|
func (inst *Instances) GetClassAttrPtr() *Attribute {
|
||||||
attr := Inst.GetAttr(Inst.ClassIndex)
|
attr := inst.GetAttr(inst.ClassIndex)
|
||||||
return &attr
|
return &attr
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Inst *Instances) GetClassAttr() Attribute {
|
func (inst *Instances) GetClassAttr() Attribute {
|
||||||
return Inst.GetAttr(Inst.ClassIndex)
|
return inst.GetAttr(inst.ClassIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user