发布新帖

查找

文章
· 四月 26, 2024 阅读大约需 2 分钟

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 Comments
讨论 (3)1
登录或注册以继续
问题
· 四月 25, 2024

How to debug with VSCode

This question originally appeared in the comments of the post: IDE platform for beginners
 

Hello All,

Visual studio code doesn't allow debugging of code or running of code as far I can see. Since I am new, could someone guide me on this. 

Thanks 

11 Comments
讨论 (11)3
登录或注册以继续
问题
· 四月 24, 2024

SDA3 Container mapping with Diagnosis, Appointment, Procedure, Referral Patient resources

#Mapping
@Jenna Poindexter 
@Ashok Kumar T 
@AndreClaude Gendron 
@Saul Bloom 
@Anthony Filaski

Folks,

I need help mapping following JSON elements with HS.SDA3 Container. Could you please share if you have any mapping details.
Source ------->Target (SDA3)
Medication (Custom Persistent class with HS.SDA3.Medication)
Procedure(Custom Persistent class with HS.SDA3.Procedure)
Referral (Custom Persistent class with HS.SDA3.Referral)
Appointment (Custom Persistent class with HS.SDA3.Appointment)
Immunization (Custom Persistent class with HS.SDA3.Vaccination)
Diagnosis (Custom Persistent class with HS.SDA3.Diagnosis)

Any help would be really appreciated.

Regards,
Isabella Barnes

4 Comments
讨论 (4)1
登录或注册以继续
文章
· 四月 24, 2024 阅读大约需 1 分钟

How to manage subscriptions on InterSystems Ideas

Hi Community!

We know how frustrating it can be to receive a lot of emails (and we definitely don't want to add to your load), so here is how you can set up email notifications for the InterSystems Ideas portal.

By default, all registered users are subscribed to all categories of ideas. To change this, just enter your Ideas Portal profile, select "Edit Profile," then click inside the item "Weekly summary email," click on "Categories to highlight" and choose what you're interested in.

 

There are also a couple of things you need to know.

1. When you create an idea or vote for an existing idea, you automatically subscribe to status changes and comments related to that idea.

2. You can subscribe/unsubscribe from notifications related to the specific idea using the button "Subscribed" in the top right corner.

If you support an idea but don't want to get notifications about it, please don't cancel your vote to unsubscribe,  use instead "Subscribed" button.

3. To see ideas you've subscribed to use "My subscriptions" filter on the Ideas Portal main menu. This filter is available after you log in to the portal.

There, you can manage your subscriptions to each idea.

4. If you don't want to get notifications from the Ideas Portal at all, please send a private message to @Vadim Aniskin .


Looking forward to your new ideas, comments, and votes on the InterSystems Ideas! 

讨论 (0)1
登录或注册以继续
讨论 (0)1
登录或注册以继续