Publications by T. Moudiki

Classification using linear regression

26.09.2021

In this post, I illustrate classification using linear regression, as implemented in Python/R package nnetsauce, and more precisely, in nnetsauce’s MultitaskClassifier. If you’re not interested in reading about the model description, you can jump directly to the 2nd section, “Two examples in Python”. In addition, the source code is relati...

3487 sym Python (2771 sym/6 pcs)

Tuning and interpreting LSBoost

15.11.2021

There is a plethora of Automated Machine Learning tools in the wild, implementing Machine Learning (ML) pipelines from data cleaning to model validation. In this post, the input data set is already cleaned and pre-processed (diabetes dataset); the ML model is already chosen too, mlsauce’s LSBoost. We are going to focus on two important steps of...

2061 sym Python (4572 sym/15 pcs) 4 img

Forecasting with `ahead` (Python version)

13.12.2021

A few weeks ago, I introduced the R version of ahead, a package for univariate and multivariate time series forecasting. A Python version, built on top of the R version, is now available on PyPI and GitHub. Here is how to install it:1st method: from PyPI (stable version) pip install ahead ...

273 sym Python (20 sym/1 pcs)

Explaining a Keras _neural_ network predictions with the-teller

11.03.2022

Last year, in a previous post, I’ve used Python package the-teller to explain an xgboost model’s predictions. After reading today’s post, you’ll be able to use that same package, the-teller, to explain predictions of a Keras neural network trained on tabular data.We start by installing the following tools:An AutoML system based on Keras: ...

635 sym Python (51 sym/2 pcs)

Super Mario Bros © in the browser using PyScript

08.05.2022

**Disclaimer: ** I have no affiliation with Anaconda Inc.If you’re a Pythonista, you’ve probably been hearing about Anaconda’s PyScript in the past few days. Since it’s been introduced at PyCon US 2022, its growth in terms of GitHub stars has been spectacular (to those who are downloading/using my packages thousands of times each month, I...

1782 sym Python (668 sym/1 pcs) 2 img

A Machine Learning workflow using Techtonique

06.06.2022

Contents0 – Import packages that will be used in the demo1 – Data-wrangling (using the querier)2 – Modeling/Hyperparameter tuning (using mlsauce and GPopt)3 – Explain model’s decisions (using the-teller)0 – Import packages!pip install querier # A query language for Python Data Frames (part of Techtonique) !pip install mlsauce # Miscel...

906 sym Python (14340 sym/38 pcs) 4 img

Prediction intervals (not only) for Boosted Configuration Networks in Python

05.10.2022

In this post, I use the following Python packages:BCN: for adjusting Boosted Configuration Networks regression (see post 1 and post 2 for more details on BCNs, and this notebook for classification examples) to sklearn’s diabetes dataset.the-teller: for interpreting BCNs, and obtaining prediction intervals. So far, as of october 2022, the-telle...

1829 sym Python (5038 sym/18 pcs) 4 img

A web application for forecasting in Python, R, Ruby, C#, JavaScript, PHP, Go, Rust, Java, MATLAB, etc.

02.11.2022

Content 0 – Intro 1 – Create an account 2 – Get a token for authentication 3 – Requests for forecasts 4 – On model calibration and cross-validation0 – IntroIn this post, I’ll describe an (work-in-progress) Application Programming Interface (API) for time series forecasting. An API is a system that can receive requests from your comp...

5641 sym Python (3555 sym/9 pcs) 4 img

Simple interfaces to the forecasting API

22.11.2022

A few weeks ago, I introduced a forecasting API (Application Programming Interface). The application can be found here: https://techtonique2.herokuapp.com/ So far, as of 2022-11-23, this API contains four methods for univariate time series forecasting (with prediction intervals): mean a (not so naïve) benchmark method, whose prediction is the...

2192 sym R (2077 sym/8 pcs) 2 img

Boosted Configuration (neural) Networks Pt. 2

02.09.2022

A few weeks ago, I introduced Boosted Configuration (neural) Networks (BCNs), with some examples of classification on toy datasets. Since then, I’ve implemented BCN for regression (continuous responses) in R, and released a Python version (built on top of the R version) of the package on PyPi. What are BCNs? Statistical/Machine Learning (ML) m...

5336 sym R (5434 sym/6 pcs) 16 img