Krishna
New Contributor
since ‎2008.08.26
‎2021.06.14

User Statistics

  • 63 Posts
  • 0 Solutions
  • 0 Kudos given
  • 0 Kudos received

User Activity

Hello q folks, I was looking at the function definition for .Q.p, after seeing its usage in the billion taxi ride benchmark. k){$[~#D;p2[x;`:.]':y;(,/p2[x]'/':P[i](;)'y)@<,/y@:i:&0<#:'y:D{x@&x in y}\:y]} - what inputs would this function take, as x a...
Dear q (and k4) folks, I was writing some code in k4(oh, the joy!) and was having trouble using variables with "_" in them. I can avoid this in my code, but when I use the embedPy module, some names imposed by python(e.g: fit_transform) signal errors...
Why does this fail ?q)g:10#();q)@[g;1 3 5;:;(1 2)#(100;100)]'length [0] @[g;1 3 5;:;(1 2)#(100;100)]And how does this succeed?q)@[g;1 3 5;:;3#(1 2)#(100;100)]()100 100()100 100()100 100()()()()Thanks, Kumar
Hi q folks, Happy Holidays to you ! I've written some embedPy examples, using real-world Kaggle data, at https://github.com/krish240574/embedPyMLAI - do take a look. The relevant examples are :2sigma_regression.q - running linear regression(using skl...
Why is q)(5 3 3)#1 displayed as follows?q)(5 3 3)#11 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1Shouldn't it be as follows ?1 1 11 1 11 1 1 1 1 11 1 11 1 1 1 1 11 1 11 1 1 1 1 11 1 11 1 1 1 1 11 1 11 1 1How doe...