Machine Learning, Data Science, Ai Programming, Model Performance, Tech Education.
perform 5-fold cross-validation on a logistic regression model: from sklearn.model_selection import cross_val_score from sklearn.linear_model import LogisticRegression # Define features (X) and target variable (y) X = data[['Age', 'Sex', 'Pclass']] y = data['Survived'] # Create a logistic