mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-28 13:48:56 +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
|
||||
}
|
||||
|
||||
func (Inst *Instances) GetClassAttrPtr() *Attribute {
|
||||
attr := Inst.GetAttr(Inst.ClassIndex)
|
||||
func (inst *Instances) GetClassAttrPtr() *Attribute {
|
||||
attr := inst.GetAttr(inst.ClassIndex)
|
||||
return &attr
|
||||
}
|
||||
|
||||
func (Inst *Instances) GetClassAttr() Attribute {
|
||||
return Inst.GetAttr(Inst.ClassIndex)
|
||||
func (inst *Instances) GetClassAttr() Attribute {
|
||||
return inst.GetAttr(inst.ClassIndex)
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user