megan_mcp
Forum Replies Created
-
Hi @Treese_H85
Apologies for the delay in response.
Can you make sure you are not running this cell after defining .z.pg, as this reverts it on the server process.
Let me know if this works !
Thanks,
Megan
-
Just so that I understand correctly, you missing the following button in your lessons?
Thanks,
Megan
-
Hi @nihS
When the question states “Define a function on our local process” – this is the process you saved to hdbH.
Try defining the function on this process instead.
Thanks,
Megan
-
megan_mcp
AdministratorMay 20, 2024 at 4:38 pm in reply to: Get the cosine similarity scores along with the retrieved docsHi @Sosycs
As an example I’ve used snippets from our Document Search sample (screenshot below):
Simply change the metric to: “metric” : “CS”.
To see the distance print the results of the similarity search (the distance will be in a column in the result called “__nn_distance”:
print(table.search(query_vector, n=3))
Also take a look at our documentation on cosine similarity for extra help – KDB.AI Similarity Metrics – Documentation (kx.com)
Hope this helps!
Thanks,
Megan
-
Hi @k
Your code seems to be correct. The issue could be that you have accessed the project from the wrong directory.
Make sure when you are launching KX Developer, it is from the course-advanced-capstone directory.
If you are still experiencing this issue, please let me know.
Thanks,
Megan
-
Hi @lonji3_1
Can you download your project.md file and send it to me at mmcparland@kx.com so I can have a closer look?
Thanks,
Megan
-
The .viz.getModSensor function uses data from the sensor table.
You can either edit this function so that the runtime is quicker or apply an attribute to the table on disk (or both).
If you need any further assistance, please let me know.
Thanks,
Megan
-
Hi @lonji3_1
There is no table called “raceTab”, it was the name given to the input parameter for raceDay.
When you ran Profile on .viz.createDashboard[] what function did you find took the longest to run?
Thanks,
Megan
-
Hi @ckeogh1
I see you have received your certificate so congratulations on completing the course!
I’m assuming this issue was resolved?
Thanks,
Megan
-
megan_mcp
AdministratorMay 8, 2024 at 9:12 am in reply to: Kernel disconnected and running into a file save errorHi @GC
You may want to save your answers as this will erase any code you have entered into the notebook.
But if you want to restart your server, go to File -> Hub Control Panel
Then click “Stop my Server” and “Start my Server”.
If this does not resolve the problem, please let me know.
Thanks,
Megan
-
Hi @timbs_1995
If you are still having trouble with this exercise can I ask that you download your project.md file and send it to me at mmcparland@kx.com ?
Thanks,
Megan
-
Hi @timbs_1995
The \l f1 command simply loads in the lap data from disk.
You must then preform your select statement for lapTable.
Thanks,
Megan
-
-
Does it pass the tests anyway?
-
Hi @timbs_1995
The table provided above is stating that there are 4 possibilities for the “mysensor” parameter: temp, tyre, wind or all.
If mysensor = temp then what should be returned are all the sensorId’s that include the word temp at the start. So tempBackLeft, tempBackRight, tempFrontLeft, tempFrontRight. The same applies for the rest.
If mysensor = all then all the sensorId’s must be returned.
You must create a dictionary that represents this logic.
Let me know if you have any further questions.
Thanks,
Megan