Blog Posts

Building a Caching System with FastHTML

April 11, 2025

Enable high performance dashboards/APIs by caching precomputed recent data.

fasthtml

Stock Embeddings - Learning Distributed Representations for Financial Assets

April 08, 2025

Identifying meaningful relationships between the price movements of financial assets is a challenging but important problem in finance. While recent machine learning research often focuses on price forecasting, modeling asset correlations has lagged. Inspired by successes in natural language processing (NLP), we propose a neural model for training *stock embeddings*. This model uses historical returns data to learn nuanced relationships between financial assets. We describe our approach, discuss its potential applications, and present evaluation results demonstrating its utility in real-world financial analytics tasks compared to benchmarks.

research

Triggering Multiple Routes from a Single Form - FastHTML & HTMX

March 23, 2025

Using hx-trigger and hx-include to improve page load times etc.

fasthtml

LSTM Networks | A Detailed Explanation

October 21, 2020

A Comprehensive Introduction to LSTMs. >100k views on Medium. Migrating to here after Toward Data Science moved away from Medium.

research