Machine Learning Flashcards
What is the use of the Pandas library in Python?
Pandas is used for data manipulation and analysis, offering data structures and operations for manipulating numerical tables and time series.
How do you create a simple linear regression model using scikit-learn?
Import LinearRegression
from sklearn.linear_model
, create an instance of LinearRegression, and use the fit()
method with your data.
What function in NumPy can you use to generate a range of numbers?
Use numpy.arange()
, which returns evenly spaced values within a given interval.
Explain the purpose of the train_test_split
function from scikit-learn.
train_test_split
splits arrays or matrices into random train and test subsets, which is crucial for evaluating the performance of a machine learning model.
Define ‘overfitting’ in the context of machine learning.
Overfitting occurs when a model learns the detail and noise in the training data to the extent that it negatively impacts the performance of the model on new data.
What is example question 5?
This is a sample answer for question 5.
What is example question 6?
This is a sample answer for question 6.
What is example question 7?
This is a sample answer for question 7.
What is example question 8?
This is a sample answer for question 8.
What is example question 9?
This is a sample answer for question 9.
What is example question 10?
This is a sample answer for question 10.
What is example question 11?
This is a sample answer for question 11.
What is example question 12?
This is a sample answer for question 12.
What is example question 13?
This is a sample answer for question 13.
What is example question 14?
This is a sample answer for question 14.
What is example question 15?
This is a sample answer for question 15.
What is example question 16?
This is a sample answer for question 16.
What is example question 17?
This is a sample answer for question 17.
What is example question 18?
This is a sample answer for question 18.
What is example question 19?
This is a sample answer for question 19.
What is example question 20?
This is a sample answer for question 20.
What is example question 21?
This is a sample answer for question 21.
What is example question 22?
This is a sample answer for question 22.
What is example question 23?
This is a sample answer for question 23.
What is example question 24?
This is a sample answer for question 24.
What is example question 25?
This is a sample answer for question 25.
What is example question 26?
This is a sample answer for question 26.
What is example question 27?
This is a sample answer for question 27.
What is example question 28?
This is a sample answer for question 28.
What is example question 29?
This is a sample answer for question 29.
What is example question 30?
This is a sample answer for question 30.
What is example question 31?
This is a sample answer for question 31.
What is example question 32?
This is a sample answer for question 32.
What is example question 33?
This is a sample answer for question 33.
What is example question 34?
This is a sample answer for question 34.
What is example question 35?
This is a sample answer for question 35.
What is example question 36?
This is a sample answer for question 36.
What is example question 37?
This is a sample answer for question 37.
What is example question 38?
This is a sample answer for question 38.
What is example question 39?
This is a sample answer for question 39.