You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When user ties to save the model with inference conda environment which has python version 3.10 or greater, the user gets introspection error - In runtime.yaml, the key MODEL_DEPLOYMENT.INFERENCE_PYTHON_VERSION must be set to a value of 3.6 or higher.
How to Reproduce
importpandasaspdimportnumpyasnpfromsklearn.datasetsimportfetch_openmlfromsklearn.model_selectionimporttrain_test_splitimportadsimportautomlxasautomlfromautomlximportinitfromads.modelimportGenericModelfromads.common.model_metadataimportUseCaseTypedataset=fetch_openml(name='adult', as_frame=True)
df, y=dataset.data, dataset.target# Several of the columns are incorrectly labeled as category type in the original datasetnumeric_columns= ['age', 'capitalgain', 'capitalloss', 'hoursperweek']
forcolindf.columns:
ifcolinnumeric_columns:
df[col] =df[col].astype(int)
X_train, X_test, y_train, y_test=train_test_split(df,
y.map({'>50K': 1, '<=50K': 0}).astype(int),
train_size=0.7,
random_state=0)
init(engine='local')
est=automl.Pipeline(task='classification')
est.fit(X_train, y_train)
ads.set_auth("resource_principal")
automl_model=GenericModel(estimator=est, artifact_dir="automl_model_artifact")
automl_model.prepare(inference_conda_env="automlx234_p310_cpu_x86_64_v1",
training_conda_env="automlx234_p310_cpu_x86_64_v1",
use_case_type=UseCaseType.BINARY_CLASSIFICATION,
X_sample=X_test,
force_overwrite=True)
automl_model.introspect()
What was Observed
What was Expected
No validation error
Version
'2.9.0'
The text was updated successfully, but these errors were encountered:
Oracle-ads version used
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of oracle-ads.
I have confirmed this bug exists on the main branch of oracle-ads.
I agree to follow Code of Conduct.
Description
When user ties to save the model with inference conda environment which has python version 3.10 or greater, the user gets introspection error -
In runtime.yaml, the key MODEL_DEPLOYMENT.INFERENCE_PYTHON_VERSION must be set to a value of 3.6 or higher.
How to Reproduce
What was Observed
What was Expected
No validation error
Version
The text was updated successfully, but these errors were encountered: