The use of Window in Apache Spark

The use of Window in Apache Spark

When processing data we often find ourselves in a situation where we want to calculatevariables over certain subset of observations. For example, we might be interested in theaverage value per group or the maximum value for each group. The groupBy…

Demand forecasting and Dynamic pricing

Demand forecasting and Dynamic Pricing

Demand forecasting and suitable pricing are two key factors in any business. In the hotel context in particular, and more specifically in the online segment, these tasks are of vital importance due to the dynamic nature of prices and high…

Dynamic programming and the Fibonacci series

Dynamic programming and the Fibonacci series

Dynamic programming Dynamic programming (DP) is a computer programming method which consists in breaking down a complex problem into smaller problems, usually in a recursive way. Then, these problems are solved one at a time, typically storing the already computed…

Simple perceptron: Python implementation

Simple Perceptron: Python implementation

Artificial neural networks are one of the main lines of study in the field of artificial intelligence today. This family of algorithms allows solving tasks as complex and diverse as image recognition, natural language processing or music generation. The main…