Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

313
Views
Vespa.ai: ¿Cómo hacer que una matriz de flotadores maneje valores nulos?

Estoy tratando de hacer una aplicación Vespa simple, donde uno de mis campos de datos es una matriz. Sin embargo, la matriz contiene algunos valores nulos. Por ejemplo, una matriz como: [2.0,1.4,null,5.6,...].

¿Qué puedo usar en lugar de flotar para representar elementos en la matriz?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Parece que desea usar un campo de tensor disperso en su lugar, ya que algunas direcciones no tienen un valor. x{} denota un tensor disperso, x[128] es un ejemplo de un tensor denso. Consulte https://docs.vespa.ai/documentation/tensor-user-guide.html para obtener una introducción a los campos de tensor vespa.

 field stuff type tensor<float>(x{}) { indexing: summary |attribute }
 [ { "put": "id:example:example::0", "fields": { "stuff" : { "cells": [ { "address" : { "x" : "0" }, "value": 2.0 }, { "address" : { "x" : "1" }, "value": 1.4 }, { "address" : { "x" : "3" }, "value": 5.6 }, ] } } } ]
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!