Defined in github.com/sjwhitworth/golearn/base/view.go
NewInstancesViewFromRows creates a new InstancesView from a source FixedDataGrid and row -> row mapping. The key of the rows map is the row as it exists within this mapping: for example an entry like 5 -> 1 means that row 1 in src will appear at row 5 in the Instancesview.
Rows are not masked in this implementation, meaning that all rows which are left unspecified appear as normal.
} // Create the return structure ret := NewInstancesViewFromRows(inst, rowMap) return ret, nil }
rowMap[j] = i } return NewInstancesViewFromRows(from, rowMap) }
rowMap[i] = srcRow } return NewInstancesViewFromRows(from, rowMap) }