Pythonクライアントの変更履歴¶
変更履歴には、 DataRobotのPython APIクライアントの各バージョンのリリースにおける、注目すべき変更点の整理され順序付けられたリストが含まれています。 Reference the full changelog below to view changes for DataRobot's newest version. View previous versions in the table of contents.
Python APIクライアントv3.7の変更履歴¶
新機能¶
- The DataRobot Python Client now supports Python 3.12 and Python 3.13.
- Added
Deployment.get_retraining_settings
to retrieve retraining settings. - Added
Deployment.update_retraining_settings
to update retraining settings. - Updated
RESTClientObject
to retry requests when the server returns a 104 connection reset error. - Added support for
datasphere
as an intake and output type in batch predictions. - Added
Deployment.get_accuracy_metrics_settings
to retrieve accuracy metrics settings. - Added
Deployment.update_accuracy_metrics_settings
to update accuracy metrics settings. - Added
CustomMetricValuesOverSpace
to retrieve custom metric values over space. - Added
CustomMetric.get_values_over_space
to 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_type
toComplianceDocTemplate
to identify the template supported project type. - Added optional parameter
project_type
inComplianceDocTemplate.get_default
to retrieve the project type's default template. - Added optional parameter
project_type
inComplianceDocTemplate.create
to specify the project type supported by the template to create. - Added optional parameter
project_type
inComplianceDocTemplate.create_from_json_file
to specify the project type supported by the template to create. - Added optional parameter
project_type
inComplianceDocTemplate.update
to allow updating an existing template's project type. - Added optional parameter
project_type
inComplianceDocTemplate.list
to allow to filtering and searching by a template's project type. - Added
ShapMatrix.get_as_csv
to retrieve SHAP matrix results as a CSV file. - Added
ShapMatrix.get_as_dataframe
to retrieve SHAP matrix results as a dataframe. - Added a new class
LiftChart
to interact with lift chart insights. - Added a new class
RocCurve
to interact with ROC curve insights. - Added a new class
Residuals
to interact with residuals insights. - Added
Project.create_from_recipe
to create Feature Discovery projects using recipes. - Added an optional parameter
recipe_type
todatarobot.models.Recipe.from_dataset
to create Wrangling recipes. - Added an optional parameter
recipe_type
todatarobot.models.Recipe.from_data_store
to create Wrangling recipes. - Added
Recipe.set_recipe_metadata
to update recipe metadata. - Added an optional parameter
snapshot_policy
todatarobot.models.Recipe.from_dataset
to specify the snapshot policy to use. - Added a new attribute
snapshot_policy
todatarobot.models.RecipeDatasetInput
to specify the snapshot policy to use. - Added a new attribute
dataset_id
todatarobot.models.JDBCTableDataSourceInput
to specify the exact dataset ID to use. - Added new attributes
prediction_point
,relationships_configuration_id
andfeature_discovery_supervised_feature_reduction
toRecipeSettings
. - Added several optional parameters to
ExecutionEnvironment
forlist
,create
andupdate
methods. - Added optional parameter
metadata_filter
toComparisonPrompt.create
. - Added
CustomInferenceModel.share
to update access control settings for a custom model. - Added
CustomInferenceModel.get_access_list
to retrieve access control settings for a custom model. - Added new attribute
latest_successful_version
toExecutionEnvironment
. - Added
Dataset.create_from_project
to create datasets from project data. - Added
ExecutionEnvironment.share
to update access control settings for an execution environment. - Added
ExecutionEnvironment.get_access_list
to retrieve access control settings an execution environment. - Created
ModerationTemplate
to interact with LLM moderation templates. - Created
ModerationConfiguration
to interact with LLM moderation configuration. - Created
CustomTemplate
to 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_parameters
toDataStore
forlist
andget
methods. - Added
Model.start_incremental_learning_from_sample
to initialize the incremental learning model and begin training using the chunking service. 「データセットサンプルからのプロジェクト作成」機能フラグが必要です。 - Added
NonChatAwareCustomModelValidation
as the base class forCustomModelVectorDatabaseValidation
andCustomModelEmbeddingValidation
. In contrast,CustomModelLLMValidation
now implements thecreate
andupdate
methods differently to interact with the deployments that support the chat completion API. - Added optional parameter
chat_model_id
toCustomModelLLMValidation.create
andCustomModelLLMValidation.update
to allow adding deployed LLMs that support the chat completion API. - Fixed
ComparisonPrompt
not being able to load errored comparison prompt results. - Added optional parameters
retirement_date
,is_deprecated
, andis_active
toLLMDefinition
and added an optional parameterllm_is_deprecated
to theMetricMetadata
to expose LLM deprecation and retirement-related information.
機能強化¶
- Added
Deployment.share
as an alias forDeployment.update_shared_roles
. - Added the
use_tcp_keepalive
parameter toClient
to enable TCP keep-alive packets when connections are timing out, enabled by default. - Internally use the existing input argument
max_wait
inCustomModelVersion.clean_create
, to set the READ request timeout.
バグ修正¶
- Made
user_id
andusername
fields inmanagement_meta
optional forPredictionEnvironment
to 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 ID
parameter is no longer optional inEvaluationDatasetConfiguration.list
. - Copy insights path fixed in
MetricInsights.copy_to_playground
. - Missing fields for
prompt_type
andwarning
were added toPromptTrace <datarobot.models.genai.prompt_trace.PromptTrace>
. - Fixed a query parameter name in
SidecarModelMetricValidation.list
. - Fixed a typo in attribute
VectorDatabase
:metadata_columns
which wasmetada_columns
. - Do not camelCase
metadata_filter
dict inChatPrompt.create
. - Fixed a Use Case query parameter name in
CustomModelLLMValidation.list
,CustomModelEmbeddingValidation.list
, andCustomModelVectorDatabaseValidation.list
. - Fixed
featureDiscoverySettings
parameter name inRelationshipsConfiguration.create
andRelationshipsConfiguration.replace
.
APIの変更¶
- Method
CustomModelLLMValidation.create
no longer requires theprompt_column_name
andtarget_column_name
parameters, and can accept an optionalchat_model_id
parameter. The parameter order has changed. If the custom model LLM deployment supports the chat completion API, it is recommended to usechat_model_id
now instead of (or in addition to) specifying the column names.
使用非推奨のサマリー¶
- Removed the deprecated
capabilities
attribute ofDeployment
. - Method
Model.request_lift_chart
is deprecated and will be removed in favor ofLiftChart.compute
. - Method
Model.get_lift_chart
is deprecated and will be removed in favor ofLiftChart.get
. - Method
Model.get_all_lift_charts
is deprecated and will be removed in favor ofLiftChart.list
. - Method
Model.request_roc_curve
is deprecated and will be removed in favor ofRocCurve.compute
. - Method
Model.get_roc_curve
is deprecated and will be removed in favor ofRocCurve.get
. - Method
Model.get_all_roc_curves
is deprecated and will be removed in favor ofRocCurve.list
. - Method
Model.request_residuals_chart
is deprecated and will be removed in favor ofResiduals.compute
. - Method
Model.get_residuals_chart
is deprecated and will be removed in favor ofResiduals.get
. - Method
Model.get_all_residuals_charts
is deprecated and will be removed in favor ofResiduals.list
.
ドキュメントの変更¶
- Removed
numpydoc
as a dependency. Docstring parsing has been handled bysphinx.ext.napoleon
since 3.6.0. - Fix issues with how the Table of Contents is rendered on ReadTheDocs.
sphinx-external-toc
is now a dev dependency. - Fix minor issues with formatting across the ReadTheDocs site.
- Updated docs on Anomaly Assessment objects to remove duplicate information.
エクスペリメントの変更¶
- Added
use_case
anddeployment_id
properties toRetrainingPolicy
class. - Added
create
andupdate_use_case
methods toRetrainingPolicy
class. - Renamed the method
train_first_incremental_from_sample
tostart_incremental_learning_from_sample
. Added new parameters :early_stopping_rounds
andfirst_iteration_only
. - Added the
credentials_id
parameter to thecreate
method inChunkDefinition
. - Bugfix the
next_run_time
property of theNotebookScheduledJob
class to be nullable. - Added the
highlight_whitespace
property to theNotebookSettings
. - Create new directory specifically for notebooks in the experimental portion of the client.
- Added methods to the
Notebook
class to work with session:start_session()
,stop_session()
,get_session_status()
,is_running()
. - Added methods to the
Notebook
in order to execute and check related execution status:execute()
,get_execution_status()
,is_finished_executing()
. - Added
Notebook.create_revision
to the Notebook class in order to create revisions. - Moved
ModerationTemplate
class toModerationTemplate
. - Moved
ModerationConfiguration
class toModerationConfiguration
to interact with LLM moderation configuration. - Updates to
Notebook.run
method in the Notebook class in order to encourage proper usage as well as add more descriptive TypedDict as annotation. - Added
NotebookScheduledJob.get_most_recent_run
to the NotebookScheduledJob class to aid in more idiomatic code when dealing with manual runs. - Updates to
Notebook.run
method 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_environment
to 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
.
このページは役に立ちましたか?
ありがとうございます。どのような点が役に立ちましたか?
より良いコンテンツを提供するには、どうすればよいでしょうか?
アンケートにご協力いただき、ありがとうございました。