mirror of
https://github.com/osmarks/meme-search-engine.git
synced 2025-09-11 23:36:03 +00:00
integrate rating model correctly
This commit is contained in:
@@ -451,7 +451,7 @@ fn main() -> Result<()> {
|
||||
for (i, (x, _embedding)) in batch.into_iter().enumerate() {
|
||||
let (vertices, shards) = read_out_vertices(count + i as u32)?; // TODO: could parallelize this given the batching
|
||||
|
||||
let mut entry_scores = scores[i..(i + score_model.output_channels)].to_vec();
|
||||
let mut entry_scores = scores[(i * score_model.output_channels)..((i + 1) * score_model.output_channels)].to_vec();
|
||||
|
||||
entry_scores.push(x.timestamp as f32); // seconds since epoch, so precision issues aren't awful
|
||||
|
||||
|
Reference in New Issue
Block a user