랭킹으로 돌아가기

ikatsov/tensor-house

Jupyter Notebook

A collection of reference Jupyter notebooks and demo AI/ML applications for enterprise use cases: marketing, pricing, supply chain, smart manufacturing, and more.

data-scienceaimodelsmarketingsupply-chainmachine-learningreinforcement-learningdeep-learningcustomer-analysisllmpersonalization
스타 성장
스타
1.5k
포크
508
주간 성장
이슈
14
5001k
2017년 12월2020년 10월2023년 9월2026년 7월
README

What is TensorHouse?

TensorHouse is a collection of reference Jupyter notebooks and demo AI/ML applications for enterprise use cases: marketing, pricing, supply chain, smart manufacturing, and more. The goal of the project is to provide a toolkit for rapid readiness assessment, exploratory data analysis, and prototyping of various modeling approaches for typical enterprise AI/ML/data science projects.

TensorHouse provides the following resources:

  • A well-documented repository of reference notebooks and demo applications (prototypes).
  • Readiness assessment and requirement gathering questionnaires for typical enterprise AI/ML projects.
  • Datasets, data generators, and simulators for rapid prototyping and model evaluation.

TensorHouse focuses mainly on industry-proven solutions that leverage deep learning, reinforcement learning, and casual inference methods and models. Most of these solutions were originally developed either by industry practitioners or by academic researchers who worked in collaboration with leading companies in technology, retail, manufacturing, and other sectors.

How Does TensorHouse Help?

TensorHouse helps to accelerate the following steps of the solution development:

  1. Faster evaluate readiness for specific use cases from the data, integration, and process perspectives using questionnaires and casual inference templates.
  2. Choose candidate methods and models for solving your use cases, evaluate and tailor them using simulators and sample datasets.
  3. Evaluate candidate methods and models on your data, build prototypes, and present preliminary results to stakeholders.

What Libs Does TensorHouse Use?

All prototypes and template are implemented in Python using a limited set of standard libraries:

  • Deep learning: mostly TensorFlow, some prototypes use PyTorch
  • Reinforcement learning: RLlib
  • Causal inference: DoWhy, EconML
  • Probabilistic programming / Bayesian inference: PyMC
  • Generative AI: LangChain
  • Traditional ML: statsmodels, scikit-learn, LightGBM
  • Basic libs: NumPy, pandas, matplotlib, seaborn

Illustrative Examples

Strategic price optimization using reinforcement learning

DQN learns a Hi-Lo pricing policy that switches between regular and discounted prices:

Supply chain optimization using reinforcement learning

DQN learns how to control procurement and logistics in a simulated environment:

Supply chain management using large language models

LLM dynamically writes a python script that invokes multiple APIs to answer user's question:

Anomaly detection in images using autoencoders

Deep autoencoders produce image reconstructions that facilitate detection of defect locations:

List of Prototypes and Templates

The artifacts listed in this section can help to rapidly evaluate different solution approaches and build prototypes using your datasets. Artifacts are marked with the following qualifiers:

  • 🧪 - artifacts that are particularly suitable for exploratory data analysis, evaluating the strength of causal effects in your data, and determining whether these data is feasible for solving a certain use case or not
  • 🚀 - conceptual prototypes that use advanced methods and not necessarily suitable for productization
  • 📚 - notebooks that demonstrate basic algorithms and intended mainly for educational purposes

Promotions, Offers, and Advertisements

These notebooks can be used to analyze the behavior of individual customers, calculate customer propensity (affinity) scores, and personalize offers, content, or digital experience.

  • Customer Scoring and Lifetime Value
    • Customer Propensity Scoring Using Deep Learning (LSTM with Attention) (notebook)
    • Customer-level Uplift Modeling Based On Observational Data Using Causal Inference (notebook) (🧪)
    • Customer Lifetime Value (LTV) Estimation Using Markov Chains (notebook)
    • Customer Lifetime Value (LTV) Estimation Using Bayesian Buy-Till-You-Die (BTYD) Model (notebook)
  • Decision Automation
    • Dynamic Content Personalization Using Contextual Bandits (LinUCB) (notebook)
    • Next Best Action Model Using Reinforcement Learning (Fitted Q Iteration) (notebook)

Marketing, Customer, and Content Analytics

The notebooks can be used to perform aggregated analysis of the customer population or segments, get insights from user-generated content, and optimize marketing budgets.

  • Content Analytics
    • Sentiment Analysis Using Basic Transformers (notebook)
    • Virtual Focus Groups Using LLMs (notebook)
  • Customer Behavior Analytics and Embeddings
    • Recency, Frequency, and Monetary Value (RFM) Analysis of Customer Purchases (notebook) (🧪)
    • Analysis of Customer Behavior Patterns Using LSTM/Transformers (notebook)
    • Item2Vec Using Word2vec (notebook)
    • Customer2Vec Using Doc2vec (notebooks: simulator, prototype)
  • Media Mix, Attribution, and Budget Optimization
    • Campaign Effect Estimation In Observational Data Using Causal Inference (notebook) (🧪)
    • Media Mix Modeling: Adstock Model for Campaign/Channel Attribution (notebook)
    • Media Mix Modeling: Bayesian Model with Carryover and Saturation Effects (notebook) (🧪)
    • Multitouch Channel Attribution Model Using Deep Learning (LSTM with Attention) (notebook)

Search

These notebooks can be used to create enterprise search, product catalog search, and visual search solutions.

  • Text Search
    • Latent Semantic Analysis (LSA) (notebook) (📚)
    • Retrieval-augmented Generation (RAG) Using LLMs (notebook)
  • Visual Search
    • Visual Search by Artistic Style (VGG16) (notebook)
    • Visual Search Based on Product Type (EfficientNetB0) (notebook)
    • Visual Search Using Variational Autoencoders (notebook)
    • Image Search Using a Language-Image Model (CLIP) (notebook)
  • Structured Data Search
    • Relational Data Querying Using LLMs (notebook)
  • Data Preprocessing
    • Product Attribute Discovery, Extraction, and Harmonization Using LLMs (notebook)

Recommendations

These notebooks can be used to prototype product recommendation solutions.

  • Basic Collaborative Filtering
    • Nearest Neighbor User-based Collaborative Filtering (notebook) (📚)
    • Nearest Neighbor Item-based Collaborative Filtering (notebook) (📚)
  • Deep and Hybrid Recommenders
    • Neural Collaborative Filtering - Prototype (notebook) (📚)
    • Neural Collaborative Filtering - Hybrid Recommender (notebook)
    • Behavior Sequence Transformer (notebook)
    • Graph Recommender Using Node2Vec (notebook)

Demand Forecasting

These notebooks can be used to create demand and sales forecasting pipelines. These pipelines can further be used to solve inventory planning, price management, workforce optimization, and financial planning use cases.

  • Traditional Methods
    • Demand Forecasting for a Single Entity Using Exponential Smoothing (ETS) (notebook)
    • Demand Forecasting for a Single Entity Using Autoregression (ARIMA/SARIMAX) (notebook)
    • Demand Forecasting and Price Effect Estimation for Multiple Entities Using Generalized Linear Models (notebook) (🧪)
  • Deep Learning Methods
    • Demand Forecasting for Multiple Entities Using DeepAR (notebook)
    • Demand Forecasting for a Single Entity Using NeuralProphet (notebook)
  • Dynamic Learning
  • Data Preprocessing

Pricing and Assortment

These notebooks can be used to create price optimization, promotion (markdown) optimization, and assortment optimization solutions.

  • Static Price, Promotion, and Markdown Optimization
    • Market Response Functions (notebook) (📚)
    • Price Optimization for Multiple Products (notebook)
    • Price Optimization for Multiple Time Intervals (notebook)
  • Dynamic Pricing
    • Dynamic Pricing Using Thompson Sampling (notebook)
    • Dynamic Pricing with Limited Price Experimentation (notebook)
    • Price Optimization Using Reinforcement Learning (DQN) (notebook) (🚀)

Supply Chain

These notebooks and applications can be used to develop procurement and inventory allocation solutions, as well as provide supply chain managers with advanced decisions support and automation tools.

  • Single-echelon Inventory Optimization Using (s,Q) and (R,S) Policies (notebook)
  • Inventory Allocation Optimization (notebook)
  • Multi-echelon Inventory Optimization Using Reinforcement Learning (DDPG, TD3) (notebook) (🚀)
  • Supply Chain Simulator for Reinforcement Learning Based Optimization (PPO) (notebook) (🚀)
  • Supply Chain Control Tower Using LLMs (notebook) (🚀)

Smart Manufacturing

These notebooks can be used to prototype visual quality control and predictive maintenance solutions.

  • Noise Reduction in Multivariate Timer Series Using Linear Autoencoder (PCA) (notebook)
  • Remaining Useful Life Prediction Using Convolution Networks (notebook)
  • Anomaly Detection in Time Series (notebook)
  • Anomaly Detection in Images Using Autoencoders (notebook)

List of Questionnaires

These questionnaires can be used to assess readiness for typical AI/ML projects and collect the requirements for creating roadmaps and estimates.

More Documentation

  • The most basic models are described the Introduction to Algorithmic Marketing.
  • More advanced models that use deep learning and reinforcement learning techniques are described in The Theory and Practice of Enterprise AI.
  • Templates for basic data science and ML task are available in TensorHouseBasic repository.
  • Most notebooks contain references to specific research papers, industrial reports, and real-world case studies.
  • Follow LinkedIn and X (Twitter) for notifications about new developments and releases.

Contribution

We warmly welcome contributions, such as implementations of new use cases, advanced features and usability improvements for existing use cases, or enhancements to documentation.

관련 저장소
microsoft/ML-For-Beginners

12 weeks, 26 lessons, 52 quizzes, classic Machine Learning for all

Jupyter NotebookMIT Licensemldata-science
88.4k21.6k
apache/superset

Apache Superset is a Data Visualization and Data Exploration Platform

PythonPyPIApache License 2.0supersetapache
superset.apache.org
73.9k17.9k
Asabeneh/30-Days-Of-Python

The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw

PythonPyPI30-days-of-pythonpython
68.8k12.8k
scikit-learn/scikit-learn

scikit-learn: machine learning in Python

PythonPyPIBSD 3-Clause "New" or "Revised" Licensemachine-learningpython
scikit-learn.org
66.7k27.2k
keras-team/keras

Deep Learning for humans

PythonPyPIApache License 2.0deep-learningtensorflow
keras.io
64.2k19.7k
pandas-dev/pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

PythonPyPIBSD 3-Clause "New" or "Revised" Licensedata-analysispandas
pandas.pydata.org
49.3k20.2k
GokuMohandas/Made-With-ML

Learn how to develop, deploy and iterate on production-grade ML applications.

Jupyter NotebookMIT Licensemachine-learningdeep-learning
madewithml.com
48.8k7.7k
apache/airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows

PythonPyPIApache License 2.0airflowapache
airflow.apache.org
46.2k17.4k
SimplifyJobs/Summer2026-Internships

Summer 2026 software engineering, data science, AI, quant, product management, and hardware internship postings. Updated daily by Simplify and Pitt CSC.

PythonPyPIinterview-preparationinternships
swelist.com
45.5k3.2k
streamlit/streamlit

Streamlit — A faster way to build and share data apps.

PythonPyPIApache License 2.0pythonmachine-learning
streamlit.io
45.3k4.3k
ray-project/ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.

PythonPyPIApache License 2.0raydistributed
ray.io
43.3k7.8k
gradio-app/gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!

PythonPyPIApache License 2.0machine-learningmodels
gradio.app
43.2k3.6k