How KNN algorithm works
KNN or K Nearest Neighbor is a non parametric or lazy learning algorithm which works while testing the data. It memorizes the unseen test data by…
1 Answer · 2.1K Views · Answered ✓
Browse 121 Machine Learning questions and answers from learners and industry experts. Find practical fixes, interview prep and step-by-step solutions - or ask your own.
KNN or K Nearest Neighbor is a non parametric or lazy learning algorithm which works while testing the data. It memorizes the unseen test data by…
1 Answer · 2.1K Views · Answered ✓
Initially we import the libraries # Importing Libraries import pandas as pd import numpy as np Now we read the dataset glass =…
1 Answer · 1.5K Views · Answered ✓
Every machine learning algorithm has their own benefits and a reason for implementation. Decision tree algorithm is one such widely used algorithm. A…
1 Answer · 1.2K Views · Answered ✓
We will import the libraries
1 Answer · 1.8K Views · Answered ✓
Here the error is due to the different shapes of train and test data of the feature variables. In test data,
1 Answer · 770 Views · Answered ✓
The error is due to the presence of categorical variables in the dataset. We cannot use names of categories directly as features in logistic…
1 Answer · 1.4K Views · Answered ✓
The following error is due to fitting a logistic and SVM model to a continuous variable. Logistic, SVM and MLP models are for classification purposes…
1 Answer · 1.8K Views · Answered ✓
Random splitting is a splitting technique which splits the data based on a ratio by selecting random attributes irrespective of the classes.
1 Answer · 1.1K Views · Answered ✓
Concatenation is joining two datasets either horizontally or vertically. Merging is merging two or more datasets based on a common column
1 Answer · 1.7K Views · Answered ✓
One-hot encoding is used to transform the categorical variables into dummy variables which is used in order to fit in the model.
1 Answer · 1.3K Views · Answered ✓
In loan approval, precision can be dangerous because it considers false positive rate when a person is not eligible for a loan but a machine predicts…
1 Answer · 1.5K Views · Answered ✓
For removing unnamed columns, we need to import the dataset and after importing following libraries
2 Answers · 2.6K Views · Answered ✓
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step Data Science guides from industry experts
Common Data Science interview questions, answered
Guides, tips and career advice on Data Science from JanBask experts.
Data Science The Best Data Science Projects (Beginner To Advanced)
Discover 15 data science project ideas from beginner to advanced levels. Includes tech stacks, time estimates, & real-use cases.…
Data Science Data Science vs Software Engineering - What you should know?
Compare Data Science vs. Software Engineering - explore skills, tools, roles, salaries, and career scope. Discover which tech…
Data Science Top 15 Deep Learning Algorithms You Must Know in 2025
Discover the top 15 deep learning algorithms powering AI in 2025. Learn how deep learning models, DL models, and deep machine…
Data Science Deep Learning Tutorial Guide for Beginners
Deep Learning, Machine Learning & Artificial Intelligence have become trending words of the IT sector today.
Pick another topic to find answers, interview questions, and real-world tips.