v3.7 changelog¶
Reference the changes introduced to v3.6 of DataRobot's Python API client.
Python client v3.7¶
New features¶
- The DataRobot Python Client now supports Python 3.12 and Python 3.13.
- Added
Deployment.get_retraining_settingsto retrieve retraining settings. - Added
Deployment.update_retraining_settingsto update retraining settings. - Updated
RESTClientObjectto retry requests when the server returns a 104 connection reset error. - Added support for
datasphereas an intake and output type in batch predictions. - Added
Deployment.get_accuracy_metrics_settingsto retrieve accuracy metrics settings. - Added
Deployment.update_accuracy_metrics_settingsto update accuracy metrics settings. - Added
CustomMetricValuesOverSpaceto retrieve custom metric values over space. - Added
CustomMetric.get_values_over_spaceto retrieve custom metric values over space. - Created
ComplianceDocTemplateProjectType, an enum to define the project type supported by the compliance documentation custom template. - Added attribute
project_typetoComplianceDocTemplateto identify the template supported project type. - Added optional parameter
project_typeinComplianceDocTemplate.get_defaultto retrieve the project type's default template. - Added optional parameter
project_typeinComplianceDocTemplate.createto specify the project type supported by the template to create. - Added optional parameter
project_typeinComplianceDocTemplate.create_from_json_fileto specify the project type supported by the template to create. - Added optional parameter
project_typeinComplianceDocTemplate.updateto allow updating an existing template's project type. - Added optional parameter
project_typeinComplianceDocTemplate.listto allow to filtering and searching by a template's project type. - Added
ShapMatrix.get_as_csvto retrieve SHAP matrix results as a CSV file. - Added
ShapMatrix.get_as_dataframeto retrieve SHAP matrix results as a dataframe. - Added a new class
LiftChartto interact with lift chart insights. - Added a new class
RocCurveto interact with ROC curve insights. - Added a new class
Residualsto interact with residuals insights. - Added
Project.create_from_recipeto create Feature Discovery projects using recipes. - Added an optional parameter
recipe_typetodatarobot.models.Recipe.from_datasetto create Wrangling recipes. - Added an optional parameter
recipe_typetodatarobot.models.Recipe.from_data_storeto create Wrangling recipes. - Added
Recipe.set_recipe_metadatato update recipe metadata. - Added an optional parameter
snapshot_policytodatarobot.models.Recipe.from_datasetto specify the snapshot policy to use. - Added a new attribute
snapshot_policytodatarobot.models.RecipeDatasetInputto specify the snapshot policy to use. - Added a new attribute
dataset_idtodatarobot.models.JDBCTableDataSourceInputto specify the exact dataset ID to use. - Added new attributes
prediction_point,relationships_configuration_idandfeature_discovery_supervised_feature_reductiontoRecipeSettings. - Added several optional parameters to
ExecutionEnvironmentforlist,createandupdatemethods. - Added optional parameter
metadata_filtertoComparisonPrompt.create. - Added
CustomInferenceModel.shareto update access control settings for a custom model. - Added
CustomInferenceModel.get_access_listto retrieve access control settings for a custom model. - Added new attribute
latest_successful_versiontoExecutionEnvironment. - Added
Dataset.create_from_projectto create datasets from project data. - Added
ExecutionEnvironment.shareto update access control settings for an execution environment. - Added
ExecutionEnvironment.get_access_listto retrieve access control settings an execution environment. - Created
ModerationTemplateto interact with LLM moderation templates. - Created
ModerationConfigurationto interact with LLM moderation configuration. - Created
CustomTemplateto interact with custom-templates elements. - Extended the advanced options available when setting a target to include parameter:
feature_engineering_prediction_point(part of the AdvancedOptions object). - Added optional parameter
substitute_url_parameterstoDataStoreforlistandgetmethods. - Added
Model.start_incremental_learning_from_sampleto initialize the incremental learning model and begin training using the chunking service. Requires the "Project Creation from a Dataset Sample" feature flag. - Added
NonChatAwareCustomModelValidationas the base class forCustomModelVectorDatabaseValidationandCustomModelEmbeddingValidation. In contrast,CustomModelLLMValidationnow implements thecreateandupdatemethods differently to interact with the deployments that support the chat completion API. - Added optional parameter
chat_model_idtoCustomModelLLMValidation.createandCustomModelLLMValidation.updateto allow adding deployed LLMs that support the chat completion API. - Fixed
ComparisonPromptnot being able to load errored comparison prompt results. - Added optional parameters
retirement_date,is_deprecated, andis_activetoLLMDefinitionand added an optional parameterllm_is_deprecatedto theMetricMetadatato expose LLM deprecation and retirement-related information.
Enhancements¶
- Added
Deployment.shareas an alias forDeployment.update_shared_roles. - Added the
use_tcp_keepaliveparameter toClientto enable TCP keep-alive packets when connections are timing out, enabled by default. - Internally use the existing input argument
max_waitinCustomModelVersion.clean_create, to set the READ request timeout.
Bugfixes¶
- Made
user_idandusernamefields inmanagement_metaoptional forPredictionEnvironmentto support API responses without these fields. - Fixed the enum values of
ComplianceDocTemplateType. - Fixed the enum values of
WranglingOperations. - Fixed the enum values of
DataWranglingDialect. - The
Playground IDparameter is no longer optional inEvaluationDatasetConfiguration.list. - Copy insights path fixed in
MetricInsights.copy_to_playground. - Missing fields for
prompt_typeandwarningwere added toPromptTrace <datarobot.models.genai.prompt_trace.PromptTrace>. - Fixed a query parameter name in
SidecarModelMetricValidation.list. - Fixed a typo in attribute
VectorDatabase:metadata_columnswhich wasmetada_columns. - Do not camelCase
metadata_filterdict inChatPrompt.create. - Fixed a Use Case query parameter name in
CustomModelLLMValidation.list,CustomModelEmbeddingValidation.list, andCustomModelVectorDatabaseValidation.list. - Fixed
featureDiscoverySettingsparameter name inRelationshipsConfiguration.createandRelationshipsConfiguration.replace.
API changes¶
- Method
CustomModelLLMValidation.createno longer requires theprompt_column_nameandtarget_column_nameparameters, and can accept an optionalchat_model_idparameter. The parameter order has changed. If the custom model LLM deployment supports the chat completion API, it is recommended to usechat_model_idnow instead of (or in addition to) specifying the column names.
Deprecation summary¶
- Removed the deprecated
capabilitiesattribute ofDeployment. - Method
Model.request_lift_chartis deprecated and will be removed in favor ofLiftChart.compute. - Method
Model.get_lift_chartis deprecated and will be removed in favor ofLiftChart.get. - Method
Model.get_all_lift_chartsis deprecated and will be removed in favor ofLiftChart.list. - Method
Model.request_roc_curveis deprecated and will be removed in favor ofRocCurve.compute. - Method
Model.get_roc_curveis deprecated and will be removed in favor ofRocCurve.get. - Method
Model.get_all_roc_curvesis deprecated and will be removed in favor ofRocCurve.list. - Method
Model.request_residuals_chartis deprecated and will be removed in favor ofResiduals.compute. - Method
Model.get_residuals_chartis deprecated and will be removed in favor ofResiduals.get. - Method
Model.get_all_residuals_chartsis deprecated and will be removed in favor ofResiduals.list.
Documentation changes¶
- Removed
numpydocas a dependency. Docstring parsing has been handled bysphinx.ext.napoleonsince 3.6.0. - Fix issues with how the Table of Contents is rendered on ReadTheDocs.
sphinx-external-tocis now a dev dependency. - Fix minor issues with formatting across the ReadTheDocs site.
- Updated docs on Anomaly Assessment objects to remove duplicate information.
Experimental changes¶
- Added
use_caseanddeployment_idproperties toRetrainingPolicyclass. - Added
createandupdate_use_casemethods toRetrainingPolicyclass. - Renamed the method
train_first_incremental_from_sampletostart_incremental_learning_from_sample. Added new parameters :early_stopping_roundsandfirst_iteration_only. - Added the
credentials_idparameter to thecreatemethod inChunkDefinition. - Bugfix the
next_run_timeproperty of theNotebookScheduledJobclass to be nullable. - Added the
highlight_whitespaceproperty to theNotebookSettings. - Create new directory specifically for notebooks in the experimental portion of the client.
- Added methods to the
Notebookclass to work with session:start_session(),stop_session(),get_session_status(),is_running(). - Added methods to the
Notebookin order to execute and check related execution status:execute(),get_execution_status(),is_finished_executing(). - Added
Notebook.create_revisionto the Notebook class in order to create revisions. - Moved
ModerationTemplateclass toModerationTemplate. - Moved
ModerationConfigurationclass toModerationConfigurationto interact with LLM moderation configuration. - Updates to
Notebook.runmethod in the Notebook class in order to encourage proper usage as well as add more descriptive TypedDict as annotation. - Added
NotebookScheduledJob.get_most_recent_runto the NotebookScheduledJob class to aid in more idiomatic code when dealing with manual runs. - Updates to
Notebook.runmethod in the Notebook class in order to support Codespace Notebook execution as well as multiple related new classes and methods to expand API coverage which is needed for the underlying execution. - Added
ExecutionEnvironment.assign_environmentto the ExecutionEnvironment class, which gives the ability to assign or update a notebook's environment. - Removed deprecated experimental method
Model.get_incremental_learning_metadata. - Removed deprecated experimental method
Model.start_incremental_learning.