Home / Past papers / MLP Quiz 1 / this paper













What is the given code below trying to accomplish for the given titanic dataset ? 


































Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.
df.isnull().sum() to count NULL values in each column.df.iloc[::, 1::2] to select odd indexed columns.object for strings.df[(df['sex'] == 'female') & (df['alive'] == 'yes')] to filter data based on conditions.SimpleImputer to fill missing values with mean, median, or other strategies.StandardScaler to scale data to have a mean of 0 and a standard deviation of 1.OneHotEncoder to convert categorical data into numerical format.LabelEncoder to convert categorical data into numerical labels.LinearRegression for regression problems.LogisticRegression for classification problems.GridSearchCV for hyperparameter tuning.VarianceThreshold to remove features with low variance.SelectKBest with statistical tests like chi2 to select the best features.train_test_split to split data into training and testing sets.early_stopping in models like SGDRegressor to stop training if the validation score does not improve.where is the scaled value, is the original value, is the mean, and is the standard deviation.
where is the actual value and is the predicted value.
where is the mean of the actual values.