{"id":24694,"library":"teradatamodelops","title":"Teradata ModelOps Python SDK","description":"Python client for Teradata ModelOps (TMO), enabling management of machine learning models and experiments on the Teradata Vantage platform. Current version 7.2.7, requires Python >=3.10. Release cadence is roughly monthly.","status":"active","version":"7.2.7","language":"python","source_language":"en","source_url":"https://github.com/Teradata-PE/avmo-ModelOpsPythonSDK","tags":["teradata","modelops","mlops","machine-learning"],"install":[{"cmd":"pip install teradatamodelops","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Required for Teradata database connectivity","package":"teradataml","optional":false},{"reason":"Used for array operations","package":"numpy","optional":false},{"reason":"Used for data frames","package":"pandas","optional":false}],"imports":[{"note":"Module is a Python package; use direct import.","wrong":"import teradatamodelops.TMOModel","symbol":"TMOModel","correct":"from teradatamodelops import TMOModel"},{"note":"","wrong":"","symbol":"TMOExperiment","correct":"from teradatamodelops import TMOExperiment"}],"quickstart":{"code":"from teradatamodelops import TMOModel\nfrom teradataml import DataFrame, create_context\n# Connect (adjust parameters for your environment)\ncreate_context(host='your_host', username='your_user', password='your_pass')\n# Load data\ndf = DataFrame('your_table')\n# Create and train model (example classification)\nmodel = TMOModel(model_type='classification',\n                 target_column='target',\n                 feature_columns=['feat1','feat2'])\nmodel.fit(df)\n# Save model to ModelOps\nmodel_id = model.save(model_name='my_model', project_name='my_project')\nprint(f'Model saved with ID: {model_id}')","lang":"python","description":"Basic workflow: connect to Teradata, load data, create a ModelOps model, train, and save."},"warnings":[{"fix":"Use 'from teradatamodelops import TMOModel' instead of 'from teradatamodelops import Model'.","message":"In version 7.x, the import path changed from 'teradatamodelops' (no subpackage) to the same but some classes were renamed. For example, 'Model' is now 'TMOModel'.","severity":"breaking","affected_versions":">=7.0.0"},{"fix":"Replace model.deploy(...) with model.deploy_model(...).","message":"The method 'TMOModel.deploy()' is deprecated in 7.2.0+. Use 'TMOModel.deploy_model()' instead.","severity":"deprecated","affected_versions":">=7.2.0"},{"fix":"Ensure you call teradataml.create_context() before using any teradatamodelops class.","message":"The library requires an active Teradata Vantage connection via teradataml. Calling any TMO method without a valid context will raise a connection error.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install teradatamodelops' in the correct Python environment (requires Python >=3.10).","cause":"Package not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'teradatamodelops'"},{"fix":"Upgrade to latest version with 'pip install --upgrade teradatamodelops' and use 'from teradatamodelops import TMOModel'.","cause":"Using old import pattern or outdated version (<7.0.0).","error":"AttributeError: module 'teradatamodelops' has no attribute 'TMOModel'"},{"fix":"Call 'create_context(host='...', username='...', password='...')' before using teradatamodelops.","cause":"Missing call to create_context() before using TMO.","error":"teradataml.exceptions.TeradataMlException: [Teradata ML] Connection context not found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}