func (crf *Runtime) deleteTrueNegative(samples tabula.ClasetInterface, cm *classifier.CM, ) { var row *tabula.Row tnids := cm.TNIndices() sort.Ints(tnids) // (1) if len(crf.weights) <= 1 { for _, i := range tnids { crf.tnset.PushRow(samples.GetRow(i)) } } // (2) c := 0 for x, i := range tnids { row = samples.DeleteRow(i - x) if row != nil { c++ } } if DEBUG >= 1 { fmt.Println(tag, "# TN", len(tnids), "# deleted", c) } }