How I had to translate Matlab code into Maple

Posted on Tue 18 August 2020 in Posts • Tagged with python, regular expressions, matlab, maple

In this short post, I wanted to point out one interesting application of regular expressions I had to work on for my PhD research project. The code was meant as a technical tool to help tranlate some ordingary differential equation models from numerical (Matlab) to symbolic (Maple) code.

The original …


Continue reading

NumPy-Learn, A Homemade Machine Learning Library

Posted on Sun 14 June 2020 in Posts • Tagged with machine learning, python, numpy, deep learning

In this post, I expand on a little class/self-teaching project that I did during the Spring 2020 semester.

NumPy-Learn: A Homemade Machine Learning Library

Organization

In this section we will discuss the main organization of the library:

  • How the layers are built
  • How loss functions work
  • How a stochastic …

Continue reading

Three Ways to Deal With Imbalance

Posted on Mon 02 March 2020 in Posts • Tagged with machine learning, logistic regression, python, scikit-learn, statistical learning

In this post, I put together an interesting example of what to do with imbalanced datasets and why precision and recall matter.

Introduction

The following is part of a Machine learning assignment I had to do while at CUNY. This particular example illustrates quite well the importance of understanding various …


Continue reading

Linear Regression as the Simplest Classifier

Posted on Mon 24 February 2020 in Posts • Tagged with machine learning, linear regression, python, scikit-learn, statistical learning

In this post I wanted to describe a simple application of a linear least squares method to a problem of data classification. It is a naive approach and is unlikely to beat more sophisticated techniques like Logistic Regression, for instance.

Imports

Some imports we are going to need for this …


Continue reading