from sklearn.impute import SimpleImputer imp = SimpleImputer(strategy=’constant’, fill_value=0) imp.fit_transform([[1, 2], [np.nan, 3]]) What is the output of this code? Data ScienceMedium Try Now
What is the result of applying a log transformation to a right-skewed numerical feature? Data ScienceMedium Try Now
Which technique is most effective for handling categorical variables with high cardinality to prevent dimensionality explosion? Data ScienceMedium Try Now
What is the primary effect of applying Standard Scaler to a dataset containing significant outliers? Data ScienceMedium Try Now
Which imputation strategy is most appropriate for a numerical feature that exhibits a highly skewed distribution? Data ScienceMedium Try Now
What is the primary consequence of applying One-Hot Encoding to a categorical feature with high cardinality? Data ScienceEasy Try Now
Which method is most appropriate for imputing missing values in a numerical feature with significant outliers? Data ScienceEasy Try Now
What is the primary purpose of performing feature scaling in a machine learning pipeline? Data ScienceEasy Try Now
Which technique is most effective for handling missing values in a small dataset with non-random missingness? Data ScienceMedium Try Now
What is the consequence of using ‘handle_unknown=’ignore” in OneHotEncoder during transformation? Data ScienceMedium Try Now
What is the primary purpose of applying a Min-Max Scaler to a feature set? Data ScienceMedium Try Now
Which preprocessing step is required to prevent data leakage when using cross-validation? Data ScienceMedium Try Now
from sklearn.preprocessing import KBinsDiscretizer enc = KBinsDiscretizer(n_bins=5, encode=’ordinal’, strategy=’uniform’) enc.fit_transform(X) What is the primary behavior of this configuration? Data ScienceHard Try Now
What is the primary risk of using Target Encoding on a categorical feature with high cardinality? Data ScienceHard Try Now
What is the consequence of applying RobustScaler to a feature containing extreme outliers in a small dataset? Data ScienceHard Try Now
Which issue arises when applying PowerTransformer with ‘yeo-johnson’ to a feature containing negative values and zeros? Data ScienceHard Try Now
What is the primary risk of using IterativeImputer on a dataset with high multicollinearity among features? Data ScienceHard Try Now
What is the result of applying a Log transformation to a feature with a right-skewed distribution? Data ScienceMedium Try Now