Charlie has a Magic Mirror Program in Java
Charlie possesses an extraordinary tool in his possession: a magic mirror capable of displaying right-rotated versions of any given word. This mirror offers a unique perspective, revealing fascinating transformations of…
Angry Professor | Hackerrank Solution
A Discrete Mathematics professor has a class of students. Frustrated with their lack of discipline, the professor decides to cancel class if fewer than some number of students are present…
Sending Data in Unstructured File Form
Unstructured data files consist of a series of bits. The file doesn’t separate the bits from each other in any way. You can’t simply look into the file and see…
Random Forests | Machine Learning from Scratch
As we have discussed, a Random Forest is an ensemble of Decision Trees, generally trained via the bagging method (or sometimes pasting), typically with max_samples set to the size of…
Accessing Data in Structured Flat-File Form
In many cases, the data you need to work with won’t appear within a library, such as the toy datasets in the Scikit-learn library. Real-world data usually appears in a…
Uploading, Streaming, and Sampling Data Using Python
Introduction Storing data in local computer memory represents the fastest and most reliable means to access it. The data could reside anywhere. However, you don’t actually interact with the data…
Utopian Tree | Hackerrank Solution
The Utopian Tree goes through 2 cycles of growth every year. Each spring, it doubles in height. Each summer, its height increases by 1 meter. A Utopian Tree sapling with…
Designer PDF Viewer | Hackerrank
When a contiguous block of text is selected in a PDF viewer, the selection is highlighted with a blue rectangle. In this PDF viewer, each word is highlighted independently. For…
What is Artificial Neural Network (ANN)?
A. Introduction to neural networksB. ANN architectures C. Learning methods D. Learning rule on supervised learning E. Feedforward neural network with Gradient descent optimization Introduction to neural networks Definition: the…
Game with String | Problem of the day
Given a string s of lowercase alphabets and a number k, the task is to print the minimum value of the string after removal of k characters. The value of…
The Hurdle Race | Hackerrank
A video player plays a game in which the character competes in a hurdle race. Hurdles are of varying heights, and the characters have a maximum height they can jump.…
What is Bagging and Pasting? Machine Learning from Scratch
Introduction One way to get a diverse set of classifiers is to use very different training algorithms, as just discussed. Another approach is to use the same training algorithm for…
What is Ensemble Learning? | Machine Learning from Scratch
Introduction: Welcome to our comprehensive tutorial on Ensemble Learning! In this guide, we’ll delve into the fascinating world of Ensemble methods, exploring how they harness the collective intelligence of multiple…
Decision Tree Regression | Machine Learning from Scratch
Decision Trees are also capable of performing regression tasks. Let’s build a regression tree using Scikit-Learn’s DecisionTreeRegressor class, training it on a noisy quadratic dataset with max_depth=2: from sklearn.tree import…
Gini Impurity or Entropy? How to decide the root node in decision tree?
By default, the Gini impurity measure is used, but you can select the entropy impurity measure instead by setting the criterion hyperparameter to “entropy”. The concept of entropy originated in…
Linear Regression from Scratch: A Step-by-Step Guide
Introduction: Linear regression is one of the fundamental techniques in machine learning and statistics used for modeling the relationship between a dependent variable and one or more independent variables. In…
Decision Trees | Machine Learning from Scratch
Like SVMs, Decision Trees are versatile Machine Learning algorithms that can perform both classification and regression tasks, and even multioutput tasks. They are very powerful algorithms, capable of fitting complex…
SVM Regression | Machine Learning from Scratch
Introduction As we mentioned earlier, the SVM algorithm is quite versatile: not only does it support linear and nonlinear classification, but it also supports linear and nonlinear regression. The trick…
Gaussian RBF Kernel | Machine Learning from Scratch
Introduction In Previous blog we talked about Polynomial Kernel. In this blog we will talk about Gaussian RBF Kernel. Just like the polynomial features method, the similarity features method can…
Polynomial Kernel | Machine Learning from Scratch
In Previous blog we talked about Non Linear SVM Classifications. In this blog we will talk about Polynomial Kernel. Introduction Adding polynomial features is simple to implement and can work…