Exploring Recommender Algorithms Through Interactive Visualizations and Sandbox Simulations | November 11 2025, 05:23

I’ve launched an electronic open source application for my book Recommender Algorithms! It’s a “sandbox” where you can “run” various recommendation algorithms with different settings, and view specific visualizations for each algorithm that help understand how it works. For instance, for algorithms like ItemKNN, SLIM, or EASE, a key visualization is a heatmap of the learned similarity matrix (item-item similarity matrix). This allows you to see which pairs of items the model considers “similar” (or “influencing” each other). For SLIM, for example, a useful “Sparsity Plot” shows that the similarity matrix indeed turned out to be sparse. For associative rule algorithms (Apriori, FP-Growth, Eclat) the visualization is not a graph, but interactive tables with found “Frequent Itemsets” and generated “Association Rules,” which can be filtered and sorted.

Additionally, there is a parametric mechanism for creating a “game dataset” — Dataset Wizard. It works like this – there are template datasets that describe items through characteristics. For example, recipes through flavors. Or movies through genres. The system generates random users with a random set of characteristics from the same set — and there are many sliders to make this distribution more contrasted or complex. Next, a matrix of user ratings of items is created – conditionally, if the characteristics of the user and the item match, then the rating will be higher because “tastes match”; conversely, if they differ, then the rating will be lower. Here too, sliders add noise and scarcity – randomly removing part of the matrix. The characteristics of products and users are not fed into the recommendation algorithm; they are hidden, but they are used to visualize the results.

The third component of the application is the tuning of hyperparameters. Essentially, it’s an auto-configurator for a specific dataset. An iterative approach is used, which is much more efficient than a full search (Grid Search) or random search (Random Search). In short, the system analyzes the history of past runs (trials) and builds a probability “map” (surrogate model) of which parameters will likely yield the best result. Then, it uses this map to smartly choose the next combination to test. This method is called Sequential Model-Based Optimization (SMBO).

The code is open source and will be further supplemented with new algorithms and new visualizations.

Link to the code in the comments.

Link to the site where the code is deployed and where you can check out the application is also in the comments.

Unveiling “Recommender Algorithms”: A Comprehensive Guide on Recommendation Systems | October 25 2025, 17:36

I finally released a book on #RecSys! It’s called Recommender Algorithms, where I’ve compiled over 50 recommendation algorithms with detailed mathematical derivations, thorough explanations, and code examples.

https://www.testmysearch.com/books/recommender-algorithms.html

It all started early this spring in Germany, when I attended an ACM conference and sketched out the first structure of the book while analyzing the talks from the RecSys track. And now, just six months later, it has come to life.

Why did I write it? Because neither online nor in print is there a single, accessible resource that deeply explores recommendation algorithms of various types and purposes. There are articles focused on small subsets, but collecting and systematizing approaches—from foundational methods to the very latest—seems to have never been done before. I don’t know if I succeeded, but I’d love to hear your feedback.

Please like & share!

P.S. Click at READ SAMPLE to see the first 40 pages. The table of contents is there as well.

https://www.testmysearch.com/books/recommender-algorithms.html

https://www.testmysearch.com/books/recommender-algorithms.html

Haunting Tales of Hotel Room 441 | October 16 2025, 12:27

I am starting to like my hotel. I am in room 446

Items we have read report that if you do stay at this hotel, avoid the fourth floor, or at least Room 441. That is where a lady from the other side lurks at the end of the bed, kicking the feet of guests who attempt to sleep there. And those guests are attempting to sleep there because they want to have the haunted experience. Don’t ask. Ever read Stephen King’s horror short story 1408”? The Congress Plaza is said to be its inspiration and a portion of the source that has brought Mr. King’s net worth to $500 million.”

Items we have read report that if you do stay at this hotel, avoid the fourth floor, or at least Room 441. That is where a lady from the other side lurks at the end of the bed, kicking the feet of guests who attempt to sleep there. And those guests are attempting to sleep there because they want to have the hauted experience. Don’t ask. Ever read Stephen King’s horror short story 1408”? The Congress Plaza is said to be its inspiration and a portion of the source that has brought Mr, King’s net worth to $500 million.”

From Vision to Bookshelf: Launching “Recommender Algorithms” | October 13 2025, 11:54

Finally, I have released a book! It is called Recommender Algorithms — it contains more than 50 recommendation algorithms with mathematical explanations, detailed descriptions, and code examples.

It all started early in the spring in Germany, when I attended the ACM conference and made the first sketches of the book’s structure, analyzing reports on the RecSys stream. And now, six months later, the book has been published.

Why did it appear? Because there is no single, accessible source either online or in print where the recommendation algorithms of various types and purposes are thoroughly examined. There are articles focused on narrow aspects, but to collect and systematize the developments — from fundamental to the most recent — until now, it seems, no one has managed to do it for some reason. Maybe no one needed to. Suddenly, I found I needed to. I don’t know if I succeeded, but I am eager for your feedback.

Available on Amazon and Barnes and Noble. There is a Russian automatic translation (surprisingly, but very decent), but I do not know how to sell it yet.

https://www.testmysearch.com/books/recommender-algorithms.html?FB

(This is not my only book, but today — just about this one.)

Decoding Solr and Lucene: Engineering Insights and Algorithms | October 06 2025, 17:11

Preparing a book for publication on Solr&Lucene. What do you think about publishing such a translation on Amazon? 🙂

The book is about algorithms and under-the-hood engineering. I haven’t seen books from this angle yet, maybe someone will find it interesting.

Introducing the AI-Powered Text-to-Diagram Generator | September 30 2025, 20:57

While working on a book, I realized what kind of product I’m missing. It’s an AI diagram generator based on textual descriptions.

The idea is that the master document for the diagram is text. This textual description can be (and should be) quite detailed, so the generated diagram exactly matches the author’s vision. The diagram itself is not edited. That is, it can be edited – moving circles around, but ideally, after making changes, the system should update the text, generating from which will result in what the user adjusted.

The result — the diagram — should correspond as closely as possible to the description. If it does not match the description because, for example, it’s impossible to make a triangle with three obtuse angles, the system should do its best and provide a verbal response about what didn’t work. The user can then modify the task so that the system complies and produces the diagram correctly.

But then we understand that the author might have randomly achieved something that they liked with their flawed text. And if regenerated, it might turn out differently, and not necessarily better. Therefore —

You could ask the system to generate a diagram description from the diagram, which, if inputted back into the diagram generator, would result exactly in what the description was generated from. Yes, this description would be more verbose and complex, but it would more reliably describe the result.

So, from this point, you are no longer working with the diagram. You are working with text. If a diagram is needed — you simply compile the text into a diagram and it turns out as needed. But you don’t even work directly with the text. You work with this diagram-description text through an LLM, asking it to add some block, and the text changes, but changes in a way that everything doesn’t suddenly shift.

The final diagram should be in an object form, from which raster (PNG) or vector (SVG, EPS) images can be created.

It would also be great if such a system could take existing diagrams or diagram templates so that it could borrow styles and existing conventions on how to display what.

So, these are my fantasies. If anyone has ideas on how to implement this — let’s discuss 🙂

Crafting the Future of Recommender Systems: A Deep Dive into Algorithms and Implementation | September 26 2025, 21:17

I decided a while ago to write a book on recommendation algorithms. With mathematics, code examples, a repository, etc. English, of course.

Accordingly, I am looking for volunteer reviewers who are knowledgeable in the field. Also those who have experience with print-on-demand on Amazon.

There’s already about 200 pages of content. About three months of work left. Working title Recommender Algorithms in 2026: A Practitioner’s Guide. Roughly half of it is still in draft form, with the first 80 pages about 80% complete.

I’ve built a mechanism to publish in HTML and PDF simultaneously. The HTML version is fully functional, with navigation. The navigation block reflects the current section, and as you scroll, it shifts to the one in front of the reader. Clicking on a section, of course, teleports you to what you clicked on. It’s all completely automatic.

Aladdin’s Chinese Roots and the French Connection | August 30 2025, 11:39

In the original tale of “One Thousand and One Nights,” Aladdin is a boy who lives with his mother in China (!). It is often emphasized that the story takes place in China, but the names of the characters are still Arab. Some believe that Aladdin is Chinese, although of course nationalities did not exist back then.

Moreover, it’s generally complicated with where the tale originates. In “1000 and One Night” (or Arabian Nights) Aladdin was added by the French translator Antoine Galland, who was told the tale by “Maronite Hanna from Aleppo” Hanna Diyab, even the date from the diaries is known – May 5, 1709. Over the course of a month, Diyab told him fifteen more tales. Ten of these, including “Ali Baba,” were later published in the last four volumes of Galland’s “Nights” (1712–1717). Thus, “1000 and One Night” was written by a French translator based on motifs from various places.

Writes twenty-year-old Diyab, the one who told the translator.

“There was an old man who often visited us. He was in charge of a library of Arab books. He read well in Arabic and translated books from this language into French. At that time, he translated the book Tales of 1001 Nights. This man asked for my help with some issues he did not understand, and I explained them to him. The book was missing several nights, and I told him the stories I knew. Then he supplemented the book with these stories and was very pleased with me.” (MS Sbath 254, f. 128a)

Cycling for History: A Book and An Unexpected Glimpse into 1930s Migration Trends | August 24 2025, 18:27

I couldn’t resist and bought the book Great Depression in Perceville, VA, where I arrived by bike. I still don’t know how to carry it back for an hour in cycling clothing without a backpack. Interesting note on a random page

Translation:

AMTORG RECEIVES 100,000 APPLICATIONS FOR 6,000 QUALIFIED JOBS IN RUSSIA

(Business Week, October 7, 1931, pp. 32–33)

NEW YORKERS make up the bulk of Americans who have decided, at least for now, to tie their fates with the Russians. Pennsylvania, New Jersey, and Illinois contribute the highest number of applications for the new call for “6,000 qualified workers,” with Michigan, Ohio, California, and Massachusetts also being well represented.

The “Amtorg” office in New York received over 100,000 applications for these 6,000 job slots. Just one morning alone saw 280 applications. All states except ten were represented. Alaska and Panama also contributed one applicant each, and 18 Canadians wanted “to try their luck in Russia.”

Industrial states, naturally, provided the largest number of applications, but others were represented as well. Iowa, Texas, and Idaho also contributed some number of qualified workers.

Since it is widely known that Russia is “industrializing,” most applicants are skilled workers in machinery, railroads, metallurgy, automotive manufacturing, or the construction industry. A look at the qualifications of 280 applicants from one “typical” morning showed that specialists of all professions were looking for work, even if it meant moving to Russia and being paid in rubles. Among them were: 2 hairdressers, 1 funeral director, 2 plumbers, 5 painters, 2 cooks, 36 “clerical” workers, 1 lathe operator, 9 carpenters, 1 aviator, 58 engineers, 14 electricians, 5 salespeople, 2 printers, 2 chemists, 1 shoemaker, 1 librarian, 2 teachers, 1 cleaner and dyer, 11 auto mechanics, 1 dentist.

About 85% of the applicants are U.S. citizens, only 40% of whom were born in the country. 60% of the foreigners primarily come from Eastern Europe. A few African Americans applied, but their numbers are small, as most of them are unskilled workers.

Women constitute only a small portion of applicants, although many wives decided to accompany their husbands in this endeavor. Most workers applying are married and have children.

Three main reasons for wanting to get a placement are named: (1) unemployment; (2) dissatisfaction with conditions here; (3) interest in the Soviet experiment. Almost all foreign workers declare that they do not intend to stay in the USSR. Among engineers, only 10-20% plan to stay.

——

This is 1931, one of the most challenging years of that period. Somewhere in the mid-thirties, it started to improve, and it must be said, WWII ultimately defeated it.

Decoding “Carboy”: A Journey Through Language and Autobiography | August 20 2025, 04:02

Rereading Feynman’s autobiography, this time in English, and my eyes stuck on the word carboy. It turns out that it’s the same as lady jeanne, and the same as demijohn – essentially lady jeanne in French (dame joanne). In short, it’s just a bottle.