Fun Q
This project containts 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. Books may be purchased in quantity and/or special sales by contacting the publisher, Vector Sigma.
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/funqThe 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 4The Errors
Any typos or errors are listed here and are incorporated into recent printings of the book.
The Swag
Swag can be found on the Vector Sigma Teespring 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 4K-Nearest Neighbors (KNN)
$ q knn.q -s 4K-Means/Medians/Medoids Clustering
$ q kmeans.q -s 4Hierarchical Agglomerative Clustering (HAC)
$ q hac.q -s 4Expectation Maximization (EM)
$ q em.q -s 4Naive Bayes
$ q nb.q -s 4Vector Space Model (tf-idf)
$ q tfidf.q -s 4Decision Tree (ID3,C4.5,CART)
$ q decisiontree.q -s 4Discrete Adaptive Boosting (AdaBoost)
$ q adaboost.q -s 4Random Forest (and Boosted Aggregating BAG)
$ q randomforest.q -s 4Linear Regression
$ q linreg.q -s 4Logistic Regression
$ q logreg.q -s 4One vs. All
$ q onevsall.q -s 4Neural Network Classification/Regression
$ q nn.q -s 4Content-Based/Collaborative Filtering (Recommender Systems)
$ q recommend.q -s 4Google PageRank
$ q pagerank.q -s 4[^fn1]: More presentations, competitions and books by Nick Psaris can be found at https://nick.psaris.com