title
              unisala image

Signature of nishan thapa

Author avatar
nishan thapaFeb 15, 2025
2 sum soltution using dict(hashmap) in python .

class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] here

2 min read·General
Author avatar
nishan thapaFeb 10, 2025
Spam detection project

 Importing Required Librariespython Copy Edit import numpy as np import matplotlib.pyplot as plt import pandas as pd import nltk from nltk.corpus import

3 min read·General
Author avatar
nishan thapaFeb 7, 2025
K-Fold Cross Validation (K-Fold CV)

K-Fold Cross Validation (K-Fold CV)K-Fold Cross Validation is a resampling technique used to evaluate the performance and generalization of a machine learning m

5 min read·General
Author avatar
nishan thapaFeb 7, 2025
Dimensionality Reduction

Dimensionality Reduction?Dimensionality Reduction is a technique used to reduce the number of input variables (features) in a dataset while preserving as much i

5 min read·General
Author avatar
nishan thapaFeb 7, 2025
Linear Discriminant Analysis (LDA)

Overview:LDA is a dimensionality reduction technique commonly used in the preprocessing step for pattern classification tasks.The main goal is to project a data

2 min read·General
Author avatar
nishan thapaFeb 2, 2025
Natural Language Processing (NLP) Intuition

Natural Language Processing (NLP) IntuitionWhat is NLP?Natural Language Processing (NLP) is a branch of Artificial Intelligence (AI) that focuses on the interac

4 min read·General
Author avatar
nishan thapaFeb 2, 2025
Thompson Sampling

Thompson Sampling## OverviewThompson Sampling is a probabilistic algorithm used for decision-making in multi-armed bandit problems. It balances exploration and

3 min read·General
Author avatar
nishan thapaJan 30, 2025
Reinforcement Learning and the Multi-Armed Bandit Problem: Maximizing Rewards1. The Problem:In reinf

Reinforcement Learning and the Multi-Armed Bandit Problem: Maximizing Rewards1. The Problem:In reinforcement learning (RL), a common problem is the multi-armed

7 min read·General
Author avatar
nishan thapaJan 27, 2025
Hierarchical Clustering

Hierarchical ClusteringOverviewHierarchical clustering is a clustering algorithm that groups data points into clusters based on their similarity. While it is co

7 min read·General
Author avatar
nishan thapaJan 26, 2025
Introduction to Unsupervised Learning: Clustering

Introduction to Unsupervised Learning: ClusteringClustering is a type of unsupervised learning, where the goal is to group data into clusters based on similarit

3 min read·General
Author avatar
nishan thapaJan 24, 2025
Evaluating the Classification model perfomance .

1. False Positive and False NegativeFalse Positive (Type I Error): This occurs when we incorrectly predict a positive result when it is actually negative. For e

3 min read·General
Author avatar
nishan thapaJan 24, 2025
What is Random Forest?

Random Forest is an ensemble learning method that combines multiple decision trees to create a more powerful machine learning model.It improves predictions by a

3 min read·General
Author avatar
nishan thapaJan 24, 2025
Decision Tree Intuition

Decision Tree IntuitionA decision tree is a powerful model used for both classification and regression tasks, hence the name CART (Classification and Regression

5 min read·General
Author avatar
nishan thapaJan 24, 2025
Notes on Bayes' Theorem and Naive Bayes Classifier## 1. Bayes' Theorem (Probability Theorem)Bayes' t

Notes on Bayes' Theorem and Naive Bayes Classifier## 1. Bayes' Theorem (Probability Theorem)Bayes' theorem is a mathematical tool used to calculate conditional

3 min read·General
Author avatar
nishan thapaJan 12, 2025
K - Nearest Neighbour

What is K-Nearest Neighbors (K-NN)?K-NN is a simple, supervised machine learning algorithm used for classification and regression tasks. It relies on the idea o

5 min read·General
Article cover
Author avatar
nishan thapaJan 11, 2025
Classification

Classification OverviewUnlike regression, where you predict a continuous number, classification is used to predict a category. Classification has diverse applic

5 min read·General
Author avatar
nishan thapaDec 29, 2024
Decision Tree Regression

Decision Tree Regression: A Complete GuideIntroductionA decision tree is a supervised machine learning algorithm used for both classification and regression tas

3 min read·General
Author avatar
nishan thapaDec 29, 2024
Support Vector Regression (Non-Linear)

Support Vector Regression (Non-Linear)Support Vector Regression (SVR) is an extension of Support Vector Machines (SVM) for regression tasks. Unlike traditional

5 min read·General
Author avatar
nishan thapaDec 26, 2024
Multiple Linear Regression

Multiple Linear Regression NotesMultiple linear regression is used when the dependent variable (y) is continuous, and there are multiple independent variables (

3 min read·General
Author avatar
nishan thapaDec 26, 2024
Types of Regression Functions

Types of Regression FunctionsSimple Linear Regression:One independent variable.Predicts a continuous dependent variable.Example: Predicting salary based on year

2 min read·General
Author avatar
nishan thapaDec 26, 2024
Machine Learning Preprocessing

Machine Learning Preprocessing: Comprehensive NotesPreprocessing is a vital step in any machine learning project. It ensures that the dataset is clean and ready

4 min read·General
Author avatar
nishan thapaDec 26, 2024
Polynomial Linear Regression

Polynomial Linear Regression: Comprehensive NotesPolynomial regression is an extension of linear regression that is used when the relationship between the indep

3 min read·General
Author avatar
nishan thapaSep 3, 2024
1)To change lists in the items in python. thislist = ["apple", "banana", "cherry"]thislis

1)To change lists in the items in python. thislist = ["apple", "banana", "cherry"]thislist[1] = "blackcurrant"print(thislist)2) so the ans of t

1 min read·General
Article cover
Author avatar
nishan thapaAug 29, 2024
Built In date types in python

There are 4 datas type in python so they are List,truples, Dictionary ,and set . So today i am gonna write or share some information that i do know about List i

1 min read·General
Article cover
Author avatar
nishan thapaAug 27, 2024
About Basic info of python the short one for today

So , if you are new comers and havnet tried python programming langaugae before so . it uses indentation to indicate a block . similary you have to use the

1 min read·General
Article cover