Giter Club home page Giter Club logo

docs's People

Contributors

5jt avatar andrewmorrison1 avatar atf1206 avatar awilson-kx avatar azurethi avatar cillianreilly avatar cmccarthy1 avatar darrenwsun avatar davidcrossey avatar dianeod avatar dmorgankx avatar egor7 avatar fallond avatar georgebacon23 avatar gyorokpeter avatar jburrkx avatar josiemd avatar kylenarocroc avatar letian-w avatar mattmaynes avatar mshimizu-kx avatar natalietanner avatar neil-anderson-kx avatar oleg-kx avatar pcarroll1gh avatar ps288 avatar rianoc avatar rianoc-kx avatar scowluga avatar sshanks-kx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

typo in doc

Hi,

I found some typos in docs/docs/style/new-wine.md.
line 78: amll -> small
line 92: lgical -> logical

Thanks for your work. Very informative.

pub sub from kdb to pyq

Hi team, I need to pub sub using pyq from kdb . Can you please let me know an example of how it can be done . Can't find any example on web or otherwise

Undocumented asc behavior

As per Behavior of asc table there appears to be undocumented functionality of asc on a table with a single key and single column:

But when there is only one non-keyed column, it's actually the sorted attribute that is set.

q)meta asc ([c1:`a`b] c2:2 1)
c | t f a
--| -----
c1| s 
c2| j   s
q)meta asc ([c1:`a`b] c2:2 1; c3:01b)
c | t f a
--| -----
c1| s
c2| j   p
c3| b

Documentation to be updated: https://code.kx.com/q/ref/asc/#asc
Duplicate information: https://code.kx.com/q/ref/set-attribute/#sorted

FYI: @StephenTaylor-Kx, CC: @rianoc

Duplicate Permutations Unaddressed

Issue

In several locations across code.kx.com we deal with finding all permutations. e.x.

In both of these cases, I find that duplicate permutations are just completely unaddressed. If we are dealing with a set, naturally there will be no problem with duplicates. But the phrasebook does not clearly specify that we are dealing with sets, and the reading room puzzle goes further to specify our input is a string (clearly not a set). Furthermore, even if we assume that we are dealing with permutations of a set, we should ensure that the official solutions we provide handle these in a standardized and expected manner.

Clearly this is not the case.

Solutions

We should either:

  1. Clarify that the solutions provided only deal with unique elements, and have undefined behaviour otherwise
  2. Standardize the solutions to remove all duplicates
  3. Standardize the solutions to enumerate all permutations, regardless of duplicates

We can also do any combination of these (e.x. solution (1) for phrasebook and (2) for the reading room problem).

My Contribution

I believe solution 2 is the best option. A list of permutations with duplicates seems redundant and unnecessary. You might as well distinct the output, in which case we should do this in the solutions provided. I don't know if applying distinct is necessarily the best solution here, in fact I have little experience with q, but it seems the most straightforward solution.

Phrasebook

  • Before: {(1 0#x){raze(1 rotate)scan'x,'y}/x}
  • After: {(1 0#x){distinct raze(1 rotate)scan'x,'y}/x}

Reading room cats cradle solution 1

This solution is actually incomplete and incorrect which is a separate issue of its own that caused this entire investigation. I have done the best I can to fix the solution and will provide it as a PR after discussion of this ticket.

  • Before: {x {flip[y]where x=sum y}[s;] s vs til"j"$s xexp s:count x}, incorrect
  • After: {distinct x @ b where all each (til c) in/:b:flip c vs til "j"$c xexp c:count x}

Reading room cats cradle solution 2

  • Before: {(1 0#x) {raze({raze reverse 0 1 _ x}\)each x,'y}/ x}, strongly based off the phrasebook solution
  • After: {(1 0#x) {distinct raze({raze reverse 0 1 _ x}\)each x,'y}/ x}

Symbol list inconsistent parsing

  • There appears to a parsing error with the new use of <pre><code class="language-q"> in the definition of code blocks over the previous use of triple back tick q as a code block start.

  • In particular the definition of code containing ` as a character for the definition of a symbol list or in embedPy for accessing python objects is not being parsed in accordance with expected behaviour for q

The code blocks in this section show this incorrect parsing (this is the only instance observed so far)

https://code.kx.com/q/ml/automl/faq/#keras-models

Namely the definition of i.keraslist should be a list of symbols, and the definition of layer1_nm in customregkeras should also be a symbol list.

Incorrect code reference for compression/uncompression

https://code.kx.com/q/basics/ipc/#compression
"The compression/decompression algorithms are proprietary and implemented as the z and u methods in c.java"

Should prob be
"The compression/decompression algorithms are proprietary and implemented as the compress and uncompress methods in c.java"

Background:
https://github.com/KxSystems/javakdb/blob/c9afe6fa32d7d3e3cddabdc9bd43f0155a5d2a1b/src/kx/c.java
Original has z/u methods

changed as part of 'reformatted, documented and provided simple examples' Jun 16 2017
KxSystems/javakdb@5e1ee8f#diff-6ad7d9db62e45794ad1ae4af83abecdd

Now uses 'compress' and 'uncompress' methods
https://github.com/KxSystems/javakdb/blob/master/src/kx/c.java

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.