K-Means algorithm for Machine Learning

K-Means Clustering is an Unsupervised Learning algorithm, which groups the unlabeled dataset into different clusters. It allows us to cluster the info into different groups and a convenient way to discover the categories of groups in the unlabeled dataset on its own without the need for any training. The k-means clustering algorithm mainly performs two…

Read More

DBSCAN algorithm for Machine Learning

Density-based special clustering of applications with noise or DBSCAN is a density-based clustering method that calculates how dense the neighborhood of a data point is. the main idea behind DBSCAN is that a point belongs to a cluster if it is close to many from that cluster. It will measure the similarity between data points,…

Read More

Default argument and Ternary operators in Python

The objects like list, dict are mutable. A mutable object can change its state or contents, so whenever we use these types of mutable objects as default argument in Python functions, and execute or call the function multiple times it gives unnecessary output for each function call. The example shown below is to return the…

Read More

Difference between List and Tuple in Python

Lists and Tuple store one or more objects or values in a specific order. The objects stored in a list or tuple can be of any type including the nothing type defined by the None Keyword. Syntax Differences Syntax of list and tuple is slightly different. List are surrounded by square brackets [] and Tuples…

Read More

Support Vector Machine algorithm for Machine Learning

Support vector Machine or SVM is a Supervised Learning algorithm, which is used for Classification and Regression problems. However, primarily, it is used for classification problems in Machine Learning. The goal of the SVM algorithm is to create the decision boundary that can segregate n-dimensional space into classes so that we can easily classify new…

Read More

Breast Cancer Detection Project using ML

Breast cancer (BC) is one among the foremost common cancers among ladies worldwide, representing the bulk of recent cancer cases and cancer-related deaths in line with world statistics, creating it a major public ill health in today’s society. The early diagnosing of BC will improve the prognosis and probability of survival considerably, because it will promote timely clinical treatment to patients. any correct classification of benign tumors will stop patients undergoing supernumerary…

Read More

Python List Methods

The Python List is a general data structure widely used in Python programs. They are both mutable and can be indexed and sliced. List methods 1 – append(value) Append a new element to the end of the list. 2 – extend(value) Extends the list by appending elements from another enumerable. 3 – index(value) Gets the…

Read More

Random Forest algorithm for Machine Learning

Random Forest is better than Decision Tree as the greater number of trees in the forest leads to higher accuracy and prevents the problem of overfitting. Algorithm working Random Forest uses a Bagging technique with one modification, where subset of features are used for finding best split. Advantages & Disadvantages Disadvantages Popular Posts

Read More

End to End Project Multiple Disease Detection using ML

Project 1: Heart Disease Detection Machine Learning is used across numerous spheres around the world. The healthcare industry is no exception. Machine Learning can play an essential part in predicting presence/ absence of Locomotor diseases, Heart conditions and further. similar information, if predicted well in advance, can give important perceptivity to doctors who can also…

Read More

Arrays Functions and Functional Programming in Python

This post is dedicated to some of the commonly used numpy function to do with arrays in python. 1 – Remove Duplicate from arrays using numpy 2 – Concatenate two arrays using numpy 3 – Get product of one/two arrays using numpy 4 – Basic maths function of Numpy Functional Programming Functional programming is a…

Read More

Array Methods in Python

Arrays are used to store multiple values in one single variable. Array can be handled in Python by a module named array. Type codes for different data types: These codes are used while creating an array. 1 – Creating an Array Array(data_type, value_list) 2 – Adding Element to Array Insert() is used to insert one…

Read More

K-nearest Neighbor for Machine Learning

Analogy behind KNN: tell me about your friend (who your neighbors are) and I will tell you who you are. Algorithms Common distance function measure used for continuous variables. KNN Working The k-NN working can be explained on the basis of the below algorithm: Step-1: select the number of K of the neighbors Step-2: Calculate…

Read More