Category Archives: Machine Learning

Route Planning with DynaQ Reinforcement Learning

The purpose of a simple route planning is to find the optimum route from one location to another that minimizes travel distance or time. Generally various heuristic optimization techniques are used to find optimum route. In this post we will … Continue reading

Posted in AI, Machine Learning, Python, Reinforcement Learning | Tagged , , , , , , , | Leave a comment

Time Series Feature Engineering with Histogram

Typically time series data requires manual feature engineering unless you are using Deep Learning. Deep Learning alleviates you from this task but there is no guarantee. There are many techniques for feature engineering time series. In this post will use … Continue reading

Posted in AI, Anomaly Detection, Data Science, feature engineering, Machine Learning, Time Series Analytic | Tagged , , , , , , | Leave a comment

Time Series Classification with Neural Network using Random Sub Sequence Statistics as Features

Deep Learning models generally extract features in the early layers of the network. It does away with the need for manual feature engineering making it attractive ML technique. However, this not always the case, time series clustering and classification being … Continue reading

Posted in AI, Machine Learning, Python, PyTorch, Time Series Analytic | Tagged , , , , , | Leave a comment

Time Series Forecasting with Decomposition and Two Linear Networks

Many solutions for time series forecasting are available, starting from classic ARIMA to Deep Learning Transformer based. Results are varied. There doesn’t appear to be any consensus for the best performing forecasting model overall. In this post, we will go … Continue reading

Posted in AI, Machine Learning, Python, PyTorch, Time Series Analytic, Time Series Forecasting | Tagged , , , | Leave a comment

Store Inventory Replenishment with Q Value Reinforcement Learning

Posted in AI, Machine Learning, Python, Reinforcement Learning | Tagged , , | Comments Off on Store Inventory Replenishment with Q Value Reinforcement Learning

Online Advertisement Placement with Contextual Bandit.

There is a class of algorithms called Multi Arm Bandit (MAB) applicable for Reinforcement Leaning problems without state. Sometimes there is side information available for each action. MAB algorithms that take this side information aka context into account are called … Continue reading

Posted in AI, Data Science, Machine Learning, Python, Reinforcement Learning | Tagged , | Leave a comment

Time Series Sequence Anomaly Detection with Markov Chain

There are many algorithms for anomaly detection in time series including Deep Learning based solutions. The anomalies are of 2 types, point and sequence. Sequence anomaly detection is generally of more interest for time series data. In this post we … Continue reading

Posted in Anomaly Detection, Data Science, Machine Learning, Python, Statistics, time series | Tagged , | Leave a comment

Realtime Concept Drift Detection for Machine Learning Classification Models

Concept drift can occur when the relationship between the input and output data changes i.e P(Y|X) changes while P(X) remains same. It happens when the behavior of the underlaying process has changed with respect to the model training time. This … Continue reading

Posted in AI, Anomaly Detection, Machine Learning, mlops, Python | Tagged , , | Leave a comment

Simulating A/B Test with Counterfactual and Machine Learning Regression Model

Performing A/B test is costly. It takes time and resource.AB testing is a way trying multiple versions of something to find out which works best based on some metric. it’s also called Randomized Controlled Test (RCT). There are many application … Continue reading

Posted in AI, causality, Data Science, Deep Learning, Machine Learning, Python | Tagged , , , | Leave a comment

Synthetic Regression Data Generation in Python

In one of my projects, I needed to to generate synthetic data for a regression model. After looking around I could not find anything satisfactory, including Scikit-Learn. I wanted to have more control over the data generation process. I decided … Continue reading

Posted in AI, Machine Learning, Python, Uncategorized | Tagged , | 3 Comments