Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
40 views
in Artificial Intelligence (AI) by (114k points)
What is the significance of feature scaling in machine learning?

Please log in or register to answer this question.

1 Answer

0 votes
by (114k points)

Feature scaling is the process of normalizing or standardizing the numerical features in a dataset. It ensures that all features have a similar scale and range, preventing some features from dominating others due to their larger values. Feature scaling is important for algorithms that rely on distance-based calculations, such as K-nearest neighbors (KNN) and gradient descent-based optimization algorithms.

Example code:

# Example code illustrating feature scaling using standardization
from sklearn.preprocessing import StandardScaler

scaler = StandardScaler()
X_scaled = scaler.fit_transform(X)
 

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...