Funq
Source files for "Fun Q: A Functional Introduction to Machine Learning in Q"
Install / Use
/learn @psaris/FunqREADME
Fun Q
This project contains the source files for "Fun Q: A Functional Introduction to Machine Learning in Q".[^fn1]
The Book
Fun Q can be purchased on Amazon and Amazon UK. A Kindle version is also available. Books may be purchased in quantity and/or special sales by contacting the publisher, Vector Sigma. Read a review by Daniel Krizian published by Vector, the Journal of the British APL Association.
The Source
Install q from Kx System's kdb+ download page and grab a
copy of the Fun Q source.
$ git clone https://github.com/psaris/funq
The Fun Q Environment
The following command starts the q interpreter with all Fun Q libraries loaded and 4 secondary threads for parallel computing.
$ q funq.q -s 4
The Errors
Any typos or errors are listed here and are incorporated into recent printings of the book as well as the kindle version.
The Swag
Swag can be found on the Vector Sigma Spring site.
More Fun
Start q with any of the following or read the comments and run the examples one by one.
Plotting
$ q plot.q -s 4
K-Nearest Neighbors (KNN)
$ q knn.q -s 4
K-Means/Medians/Medoids Clustering
$ q kmeans.q -s 4
Hierarchical Agglomerative Clustering (HAC)
$ q hac.q -s 4
Expectation Maximization (EM)
$ q em.q -s 4
Naive Bayes
$ q nb.q -s 4
Vector Space Model (tf-idf)
$ q tfidf.q -s 4
Decision Tree (ID3,C4.5,CART)
$ q decisiontree.q -s 4
Discrete Adaptive Boosting (AdaBoost)
$ q adaboost.q -s 4
Random Forest (and Boosted Aggregating BAG)
$ q randomforest.q -s 4
Linear Regression
$ q linreg.q -s 4
Logistic Regression
$ q logreg.q -s 4
One vs. All
$ q onevsall.q -s 4
Neural Network Classification/Regression
$ q nn.q -s 4
Content-Based/Collaborative Filtering (Recommender Systems)
$ q recommend.q -s 4
Google PageRank
$ q pagerank.q -s 4
<!----- Footnotes ----->
[^fn1]: More presentations, competitions and books by Nick Psaris can be found at https://nick.psaris.com
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
mentoring-juniors
Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.
groundhog
399Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
