Fixing hint projection bug
This commit is contained in:
parent
4896f52871
commit
54a912cac3
4
util.go
4
util.go
@ -107,8 +107,10 @@ func project(entries records, features featureMap, featureName string, minScore
|
|||||||
|
|
||||||
var projection []queryProjection
|
var projection []queryProjection
|
||||||
stepRange(-1.0, 1.0, steps, func(sample float64) {
|
stepRange(-1.0, 1.0, steps, func(sample float64) {
|
||||||
sampleFeatures[featureName] = sample
|
sample, sampleFeatures[featureName] = sampleFeatures[featureName], sample
|
||||||
compatibility, count := statRecords(entries, sampleFeatures, minScore)
|
compatibility, count := statRecords(entries, sampleFeatures, minScore)
|
||||||
|
sample, sampleFeatures[featureName] = sampleFeatures[featureName], sample
|
||||||
|
|
||||||
projection = append(projection, queryProjection{compatibility, count, sample})
|
projection = append(projection, queryProjection{compatibility, count, sample})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user