Challenge: Apply the Estimator API
Tarefa
Swipe to start coding
You are working with the scikit-learn Estimator API, which follows a consistent pattern across models.
Your goal is to apply the Estimator workflow by fitting a model and generating predictions using the standard fit and predict methods.
- Create a
LogisticRegressionestimator withrandom_state=42. - Fit the estimator using the provided training data:
X_train;y_train.
- Use the fitted estimator to generate predictions for
X_test. - Store the predictions in the variable
y_pred.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 4
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 5.26
Challenge: Apply the Estimator API
Deslize para mostrar o menu
Tarefa
Swipe to start coding
You are working with the scikit-learn Estimator API, which follows a consistent pattern across models.
Your goal is to apply the Estimator workflow by fitting a model and generating predictions using the standard fit and predict methods.
- Create a
LogisticRegressionestimator withrandom_state=42. - Fit the estimator using the provided training data:
X_train;y_train.
- Use the fitted estimator to generate predictions for
X_test. - Store the predictions in the variable
y_pred.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 4
single