0
0
ML Pythonprogramming~20 mins

Python ML ecosystem overview in ML Python - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Python ML Ecosystem Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Key libraries for data manipulation in Python ML

Which Python library is primarily used for handling and analyzing structured data like tables?

ANumPy
BPandas
CScikit-learn
DMatplotlib
Attempts:
2 left
Predict Output
intermediate
1:30remaining
Output of a simple NumPy array operation

What is the output of this code?

ML Python
import numpy as np
arr = np.array([1, 2, 3])
result = arr * 2
print(result.tolist())
A[2, 4, 6]
B[1, 2, 3, 1, 2, 3]
C[1, 4, 9]
DTypeError
Attempts:
2 left
Model Choice
advanced
2:00remaining
Choosing the right library for deep learning

You want to build a deep neural network with GPU support and easy model building. Which Python library is best suited?

ATensorFlow
BScikit-learn
CPandas
DMatplotlib
Attempts:
2 left
Metrics
advanced
1:30remaining
Understanding model evaluation metrics in scikit-learn

Which metric from scikit-learn is best to evaluate a classification model's ability to balance precision and recall?

AAccuracy Score
BMean Squared Error
CF1 Score
DR-squared
Attempts:
2 left
🔧 Debug
expert
2:00remaining
Identifying the error in a scikit-learn pipeline code

What error does this code raise?

ML Python
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression

pipe = Pipeline([
    ('scaler', StandardScaler()),
    ('clf', LogisticRegression())
])

pipe.fit([[1, 2], [3, 4]], [0, 1])
AValueError: Found input variables with inconsistent numbers of samples
BTypeError: fit() missing 1 required positional argument
CAttributeError: 'Pipeline' object has no attribute 'fit'
DNo error, code runs successfully
Attempts:
2 left