Re-entrancy attacks in Smart Contracts

I’ve been playing around with smart contracts recently. In this post I explain a re-entrancy attacks, a common security flaw in many smart contracts. Re-entrancy attacks occur when a smart contract function temporarily abandons the transaction’s control flow by making an external call to a contract written by unknown or hostile actors. This allows the latter contract to make a recursive call to the primary smart contract function to drain its funds.

Read More

Decision Trees and Gini Impurity

Decision Trees are versatile Machine Learning algorithms that can perform both classification and regression tasks. In this post, we will learn how they use different cost functions to measure their performance depending on the type of problem they are solving.

Read More

Linear regression in PyTorch and Tensorflow

Regression is a statistical technique that helps you to estimate the relationship between a dependent variable and one or more independent variables. It is basically the simplest machine learning algorithm you can imagine. For example, you can use regression to find out how the price of a house depends on its size, location, number of rooms, etc.

Read More

Backprogragation from the ground up

Backpropagation is a popular algorithm used in training neural networks, which allows the network to learn from the input data and improve its performance over time. It is essentially a way to update the weights and biases of the network by propagating errors backwards from the output layer to the input layer.

Read More

Linear Mixed Effects Models

Have you ever had to analyze data with a complex structure, such as nested or hierarchical data, and found yourself struggling to find a suitable statistical model? If so, you might want to consider using linear mixed effects models.

Read More