Nueva publicación

Encontrar

Artículo
· 26 abr, 2024 Lectura de 2 min

Geo Vector Search #1

Geographic use of vector search

The basic idea is to use Vectors in the mathematical sense.
I used geographic coordinates. These are of course only 2-dimensional
but much easier to follow as vectors in text analysis with >200 dimensions.

The example loads a list of worldwide capitals with their coordinates
The coordinates are interpreted as vectors from geographic point 0°N/0 W
(some very wet spot in the Gulf of Guinea, >400 km from the African Coast)
Finding common directions from that spot is a quite theoretical case.
So adjustment to your preferred starting point is implemented.
Now finding similar directions for some target city makes sense.
It's a methematical use of VECTOR_COSINE() function other than text search.

And as this is just 2 dimensional COSINE is just what we (hopefully) learned at school.
So the results are far better to understand: 

  • 1  =  total match, same direction 0° deviation from original
  • 0  = no match at all,  direction points 90° away from original
  • -1 = total opposite direction pointing backward by 180° from original
  •  ~0.999  = quite close to original 

You just get information on the direction, not on the size.
So your vector from Paris to Budapest  points also to Minsk or someplace In Asia

The demo is controlled by a rathrer simple menu:

  Use Geographc Vectors
=========================
     1 - Initialize Tables
     2 - Import Data
     3 - Set Base Location
     4 - Generate Vectors
     5 - Select Target Location
     6 - Show Best Matches
Select Function or * to exit :

for multiple retries, you always restart at

  • #3 set your starting location
  • #4 adjust coordinates to your selected base
  • #5 set your target location  defining your base vector
  • #6 see what's in between or in front of your vector
    • adjust tolerance from -1...+1

GitHub

Video

DemoServer Mgmt Portal
DemoServer WebTerminal
 

3 comentarios
Comentarios (3)1
Inicie sesión o regístrese para continuar
Pregunta
· 26 abr, 2024

How to read XML data in a routing rule

I am receiving an XML input to my router and in the routing rule I need to traverse through the xml data , apply a for loop and fetch data.

How can I do that ?

Input :

 

<?xml version="1.0" encoding="UTF-8"?>
<Input>
   <data>
      <Ids>
         <Id>
            <Type>A</Type>
            <Value>123</Value>
         </Id>
         <Id>
            <Type>B</Type>
            <Value>456</Value>
         </Id>
      </Ids>
   </data>
</Input>

 

I would like to read 123 from above xml in a rule ..

3 comentarios
Comentarios (3)1
Inicie sesión o regístrese para continuar
Artículo
· 26 abr, 2024 Lectura de 4 min

Comprobación de Versión en objetos. "ERROR:5800"

Si tenéis tablas de sistema que implementan la funcionalidad "VERSIONPROPERTY", podéis encontraros con el error 5800. Este artículo explica cómo se produce este error y proporciona soluciones para resolver el problema.

Cuando se implementa la comprobación de versiones, la propiedad especificada por VERSIONPROPERTY se incrementa automáticamente cada vez que se actualiza una instancia de la clase (ya sea mediante objetos o SQL).

Por ejemplo:

Comentarios (0)1
Inicie sesión o regístrese para continuar
Anuncio
· 26 abr, 2024

[Vidéo] Introduction à l'analyse avec InterSystems IRIS

Salut la Communauté!

Profitez de regarder la nouvelle vidéo sur la chaîne Youtube d'InterSystems France

📺 Introduction à l'analyse avec InterSystems IRIS

Découvrez les capacités d'analyse de la plateforme de données InterSystems IRIS et d'InterSystems IRIS for Health. Découvrez les outils d'analyse intégrés et les outils tiers pris en charge par InterSystems IRIS et découvrez comment vous pouvez utiliser ces outils pour vos propres besoins d'analyse.

Cette vidéo est doublée grâce à Bard, l'intelligence artificielle de Google. 

N'oubliez pas à partager vos réflexions et impressions dans des commentaires après avoir regardé cette vidéo !

Comentarios (0)1
Inicie sesión o regístrese para continuar
Artículo
· 26 abr, 2024 Lectura de 1 min

QuinielaML - Predicciones de la 54ª jornada de la Quiniela

Como ya viene siendo habitual, aquí tenemos una nueva jornada de la Quiniela, la 54ª, 33ª de Primera División y 37ª de Segunda División.

Estos son los partidos que la conforman:

Veamos que nos cuenta QuinielaML para Primera División:

Y para Segunda División:

Esto nos da la siguiente Quiniela:

¡Suerte y buen fin de semana!

3 comentarios
Comentarios (3)2
Inicie sesión o regístrese para continuar