QuestionQ55

VerifiedTrain and use machine learning models

A Data Scientist has trained a scikit-learn model named cf.

Which snowflake.ml.registry Python code registers the model in the Snowpark Model Registry?

Explanation

Registry.log_model accepts the trained model as its first argument and requires model_name; it also supports version_name, conda_dependencies, comment, and a metrics dictionary. A scikit-learn model must provide either sample_input_data or signatures so the registry can determine target-method signatures. The valid registration pattern therefore includes the classifier, a valid model name, and sample_input_data.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!