Techno Blender
Digitally Yours.
Browsing Tag

Politi

Ace your Machine Learning Interview – Part 2 | by Marcello Politi | Oct, 2022

Photo by KOBU Agency on UnsplashDive into Logistic Regression for classification problems using PythonIntroductionIn previous articles we have seen the theory and implementation of the Linear Regression algorithm:Ace your Machine Learning Interview — Part 1Linear Regression and Gradient Descent Using Only NumpyNow let us see how we can use a variant of Linear Regression for classification problems.Logistic RegressionWhat we want to do is to build a model that outputs the probability that a given input belongs to a certain…

Ace your Machine Learning Interview – Part 1 | by Marcello Politi | Oct, 2022

Photo by LinkedIn Sales Solutions on UnsplashDive into Linear, Lasso and Ridge Regression and their assumptionsIntroductionThese days I am having several interviews in the field of Machine Learning as I have moved abroad and need to look for a new job.Big companies and small startups always want to make sure you know the fundamentals of Machine Learning, and so I’m using some of my time going over the basics again. So I decided to share a series of articles about what you need to know to deal with interviews in Machine…

Convolutions in One Dimension using Python | by Marcello Politi | Oct, 2022

Photo by Ocramnaig_o1 on UnsplashLearn the building blocks of CNNs and stop getting size mismatch errorsI often see people who want to learn how to develop deep learning applications very quickly, they learn the basics of some library like PyTorch or Tensorflow but then they haven’t really understood what’s behind those magical functions that they use so superficially. It so happens, not infrequently, that when something doesn’t work or you need to customize some function nobody knows where to start.When one is interested…

Parallel Programming with CUDA in C++ (Part 1) | by Marcello Politi | Jul, 2022

Photo by aaron boris on UnsplashLearn how to speed up compute-intensive applications with the power of modern GPUsThe most common deep learning frameworks such as Tensorflow and PyThorch often rely on kernel calls in order to use the GPU for parallel computations and accelerate the computation of neural networks. The most famous interface that allows developers to program using the GPU is CUDA, created by NVIDIA.Parallel computing requires a completely different point of view from ordinary programming, but before you…

Design Patterns with Python for Machine Learning Engineers: Abstract Factory | by Marcello Politi | Jul, 2022

Photo by Omar Flores on UnsplashLearn how you can structure your code by adopting design patternsIntroductionA pattern describes a frequently recurring problem and proposesa possible solution in terms of class/object organization thatgenerally found to be effective in solving the problem itself.Design Patterns are characterized by four main elements:Name: mnemonic reference that allows us to identify the problem and solution in one or two words.Problem: description of the problem and context to which the pattern is…

McNemar’s Test to evaluate Machine Learning Classifiers with Python | by Marcello Politi | Jul, 2022

Photo by Isaac Smith on UnsplashLearn how to compare ML classifiers with a significance test using PythonIn my last article I talked about the importance of properly comparing different models using statistical tools, in order to choose the best model during the selection phase.In this article I want to focus on one statistical test in particular that as a data scientist or machine learning engineer you need to know. You can use this test in order to determine whether there is a statistically significant difference…

Everything You Need to Know to Get Started with NLP | by Marcello Politi | Jul, 2022

Photo by Benjamin Suter on UnsplashStop googling around, read this first!In this last period, I have been concentrating on reviewing and studying the most important things in the NLP field in order to face various interviews with as much peace of mind as possible. Therefore, the first thing I did was to go over all the basics of this subject so that I would be prepared for all the questions I would be asked. However, I had difficulty finding all the basic concepts in one article and spent a lot of time googling, so I…

Paired t-test to evaluate Machine Learning classifiers | by Marcello Politi | Jul, 2022

Image by AuthorLearn how to compare classifiers using hypothesis testingIntroductionIn my last article I talked about the importance of properly comparing different models using statistical tools, in order to choose the best model during the selection phase.In this article I want to focus on one statistical test in particular that as a data scientist or machine learning engineer you need to know. You can use this test in order to determine whether there is a statistically significant difference between two classifiers…

Custom Named Entity Recognition with BERT | by Marcello Politi | Jul, 2022

Photo by Alexandra on UnsplashHow to use PyTorch and Hugging Face to classify named entities in a textNamed-entity recognition (NER)is a subtask of information extraction that seeks to locate and classify named entities mentioned in unstructured text into pre-defined categories such as person names, organizations, locations, medical codes, time expressions, quantities, monetary values, percentages, etc.Image By AuthorBackground:In this article we will use some concepts that I have already introduced in my previous…

Hypothesis Testing and Climate Change | by Marcello Politi | Jul, 2022

Photo by NOAA on UnsplashLearning hypothesis testing with an example of climate changeHypothesis testing is one of the fundamental topics in machine learning and not only. Certainly, if you are going to be given a job interview it will be one question you need to be prepared on. But why is it so important?Why Hypothesis Testing ?Suppose you are working on solving a classification problem, and assume that you are only interested in the accuracy of the result. You start by very quickly implementing a simple model A that…