Machine Learning

Machine learning for trading: Python models, feature engineering, prediction pitfalls and practical examples on Indian market data.

Price line split into three coloured market regimes with clustered dots

Identifying Market Regimes with the Wasserstein K-Means Algorithm – Python Tutorial

Detect market regimes with Wasserstein k-means in Python: how the algorithm compares return distributions, a NIFTY example with OpenAlgo and tuning...
Rajandran R
14 min read
Winding road from a snowy winter landscape to a glowing neural network city

The Long Road to Machine Intelligence: From Early AI Winters to Modern Neural Networks

The journey of Artificial Intelligence (AI) has been a winding path of groundbreaking discoveries, periods of disillusionment, and remarkable comebacks. From...
Rajandran R
1 min read
News cards feeding a neural network that projects into clustered latent space dots

FinBERT and Latent Space: What Every Trader Needs to Know About AI Market Analysis

FinBERT and latent space explained for traders: how AI scores Sensex and Infosys headlines, what 3D clusters reveal, test results and...
Rajandran R
17 min read
Neural chip with tuning dials outputting sentiment faces into a chart

Fine-Tuning Gemma 3 270M for Financial Sentiment Analysis using UnSloth

Five days ago, I published an article explaining LoRA and QLoRA as game-changers for traders wanting to fine-tune AI models. The...
Rajandran R
7 min read
Neural network brain with small tuning adapters beside a trading chart

LoRA & QLoRA Explained: How Traders Can Fine-Tune AI Like They Fine-Tune a Strategy

Most traders have heard about AI by now. But let’s be honest , most of it feels too complicated or too...
Rajandran R
1 min read
Open black box revealing SHAP-style feature bars driving a forecast line

Demystifying SHAP for Traders: How to Trust Your Machine Learning Forecast

In this post I walk through a live CatBoost model that forecasts the NIFTY-50 and then crack it open with SHAP...
Rajandran R
6 min read
AI chip on a scale weighing near-term and long-term risks

Short-Term vs Long-Term AI Risks: Explained by Geoffrey Hinton

One of the most vocal and respected figures in this discourse is Geoffrey Hinton, often hailed as the Godfather of AI....
Rajandran R
3 min read
Large many-lane chip racing ahead of a small chip with few lanes

GPU vs CPU Performance: A Curious Experiment in Speed and Parallelism for Technical Analysis

Lately, I’ve been curious, how much faster is a GPU compared to CPU for technical analysis indicators? Do simple operations like...
Rajandran R
5 min read
Robot emerging from a laptop analysing a candlestick chart, offline plug icon

Build Your Own Trading Agent Locally Using Ollama and Google Gemma3: Part 1

Set up Ollama Gemma3 on Windows: pull gemma3:4b or 12b, call it from Python with JSON output and Open WebUI, and...
Rajandran R
5 min read

Diffusion-Based LLMs: A New Era in Language Modeling

The field of large language models (LLMs) is undergoing a revolutionary transformation with the introduction of diffusion-based models, breaking away from...
Rajandran R
2 min read
TradingView alerts sent through Dev Tunnels to OpenAlgo

Understanding Look-Ahead Bias and How to Avoid It in Trading Strategies

Learn what look-ahead bias in trading is, how to spot it in backtests and ML models, and avoid it with walk-forward...
Rajandran R
12 min read

How to Build AI Agents: Lessons from Anthropic

Artificial Intelligence (AI) agents are one of the hottest topics in the AI space right now. Companies are racing to build...
Rajandran R
2 min read