• About
  • Get Started
  • Guides
  • ValidMind Library
    • ValidMind Library
    • Supported Models
    • QuickStart Notebook

    • TESTING
    • Run Tests & Test Suites
    • Test Descriptions
    • Test Sandbox (BETA)

    • CODE SAMPLES
    • All Code Samples · LLM · NLP · Time Series · Etc.
    • Download Code Samples · notebooks.zip
    • Try it on JupyterHub

    • REFERENCE
    • ValidMind Library Python API
  • Support
  • Training
  • Releases
  • Documentation
    • About ​ValidMind
    • Get Started
    • Guides
    • Support
    • Releases

    • Python Library
    • ValidMind Library

    • ValidMind Academy
    • Training Courses
  • Log In
    • Public Internet
    • ValidMind Platform · US1
    • ValidMind Platform · CA1

    • Private Link
    • Virtual Private ValidMind (VPV)

    • Which login should I use?
  1. errors

EU AI Act Compliance — Read our original regulation brief on how the EU AI Act aims to balance innovation with safety and accountability, setting standards for responsible AI use

  • ValidMind Library

  • Python API
  • 2.8.13
  • init
  • init_dataset
  • init_model
  • init_r_model
  • get_test_suite
  • log_metric
  • preview_template
  • print_env
  • reload
  • run_documentation_tests
  • run_test_suite
  • tags
  • tasks
  • test
  • log_text
  • RawData
    • RawData
    • inspect
    • serialize

  • Submodules
  • __version__
  • datasets
    • classification
      • customer_churn
      • taiwan_credit
    • credit_risk
      • lending_club
      • lending_club_bias
    • nlp
      • cnn_dailymail
      • twitter_covid_19
    • regression
      • fred
      • lending_club
  • errors
  • test_suites
    • classifier
    • cluster
    • embeddings
    • llm
    • nlp
    • parameters_optimization
    • regression
    • statsmodels_timeseries
    • summarization
    • tabular_datasets
    • text_data
    • time_series
  • tests
    • data_validation
      • ACFandPACFPlot
      • ADF
      • AutoAR
      • AutoMA
      • AutoStationarity
      • BivariateScatterPlots
      • BoxPierce
      • ChiSquaredFeaturesTable
      • ClassImbalance
      • CommonWords
      • DatasetDescription
      • DatasetSplit
      • DescriptiveStatistics
      • DickeyFullerGLS
      • Duplicates
      • EngleGrangerCoint
      • FeatureTargetCorrelationPlot
      • Hashtags
      • HighCardinality
      • HighPearsonCorrelation
      • IQROutliersBarPlot
      • IQROutliersTable
      • IsolationForestOutliers
      • JarqueBera
      • KPSS
      • LJungBox
      • LaggedCorrelationHeatmap
      • LanguageDetection
      • Mentions
      • MissingValues
      • MissingValuesBarPlot
      • MutualInformation
      • PearsonCorrelationMatrix
      • PhillipsPerronArch
      • PolarityAndSubjectivity
      • ProtectedClassesCombination
      • ProtectedClassesDescription
      • ProtectedClassesDisparity
      • ProtectedClassesThresholdOptimizer
      • Punctuations
      • RollingStatsPlot
      • RunsTest
      • ScatterPlot
      • ScoreBandDefaultRates
      • SeasonalDecompose
      • Sentiment
      • ShapiroWilk
      • Skewness
      • SpreadPlot
      • StopWords
      • TabularCategoricalBarPlots
      • TabularDateTimeHistograms
      • TabularDescriptionTables
      • TabularNumericalHistograms
      • TargetRateBarPlots
      • TextDescription
      • TimeSeriesDescription
      • TimeSeriesDescriptiveStatistics
      • TimeSeriesFrequency
      • TimeSeriesHistogram
      • TimeSeriesLinePlot
      • TimeSeriesMissingValues
      • TimeSeriesOutliers
      • TooManyZeroValues
      • Toxicity
      • UniqueRows
      • WOEBinPlots
      • WOEBinTable
      • ZivotAndrewsArch
      • nlp
    • model_validation
      • AdjustedMutualInformation
      • AdjustedRandIndex
      • AutoARIMA
      • BertScore
      • BleuScore
      • CalibrationCurve
      • ClassifierPerformance
      • ClassifierThresholdOptimization
      • ClusterCosineSimilarity
      • ClusterPerformanceMetrics
      • ClusterSizeDistribution
      • CompletenessScore
      • ConfusionMatrix
      • ContextualRecall
      • CumulativePredictionProbabilities
      • DurbinWatsonTest
      • FeatureImportance
      • FeaturesAUC
      • FowlkesMallowsScore
      • GINITable
      • HomogeneityScore
      • HyperParametersTuning
      • KMeansClustersOptimization
      • KolmogorovSmirnov
      • Lilliefors
      • MeteorScore
      • MinimumAccuracy
      • MinimumF1Score
      • MinimumROCAUCScore
      • ModelMetadata
      • ModelParameters
      • ModelPredictionResiduals
      • ModelsPerformanceComparison
      • OverfitDiagnosis
      • PermutationFeatureImportance
      • PopulationStabilityIndex
      • PrecisionRecallCurve
      • PredictionProbabilitiesHistogram
      • ROCCurve
      • RegardScore
      • RegressionCoeffs
      • RegressionErrors
      • RegressionErrorsComparison
      • RegressionFeatureSignificance
      • RegressionModelForecastPlot
      • RegressionModelForecastPlotLevels
      • RegressionModelSensitivityPlot
      • RegressionModelSummary
      • RegressionPerformance
      • RegressionPermutationFeatureImportance
      • RegressionR2Square
      • RegressionR2SquareComparison
      • RegressionResidualsPlot
      • RobustnessDiagnosis
      • RougeScore
      • SHAPGlobalImportance
      • ScoreProbabilityAlignment
      • ScorecardHistogram
      • SilhouettePlot
      • TimeSeriesPredictionWithCI
      • TimeSeriesPredictionsPlot
      • TimeSeriesR2SquareBySegments
      • TokenDisparity
      • ToxicityScore
      • TrainingTestDegradation
      • VMeasure
      • WeakspotsDiagnosis
      • sklearn
      • statsmodels
      • statsutils
    • prompt_validation
      • Bias
      • Clarity
      • Conciseness
      • Delimitation
      • NegativeInstruction
      • Robustness
      • Specificity
      • ai_powered_test
  • unit_metrics
  • vm_models

On this page

  • Base errors
    • BaseError
    • APIRequestError
  • API errors
    • InvalidAPICredentialsError
    • MissingAPICredentialsError
  • Model errors
    • InvalidXGBoostTrainedModelError
    • MissingModelIdError
    • MissingOrInvalidModelPredictFnError
    • UnsupportedModelError
    • UnsupportedModelForSHAPError
    • UnsupportedRModelError
  • Test errors
    • GetTestSuiteError
    • InitializeTestSuiteError
    • InvalidTestParametersError
    • InvalidTestResultsError
    • LoadTestError
    • MissingRequiredTestInputError
    • SkipTestError
    • TestInputInvalidDatasetError
  • Input validation errors
    • InvalidXGBoostTrainedModelError
    • MissingModelIdError
    • MissingOrInvalidModelPredictFnError
    • InvalidTestParametersError
    • InvalidTestResultsError
    • MissingRequiredTestInputError
    • InvalidAPICredentialsError
    • InvalidContentIdPrefixError
    • InvalidInputError
    • InvalidMetricResultsError
    • InvalidParameterError
    • InvalidProjectError
    • InvalidRequestBodyError
    • InvalidTextObjectError
    • InvalidValueFormatterError
    • MissingAPICredentialsError
    • MissingCacheResultsArgumentsError
    • MissingClassLabelError
    • MissingDependencyError
    • MissingDocumentationTemplate
    • MissingRExtrasError
    • MissingTextContentIdError
    • MissingTextContentsError
  • Unsupported feature errors
    • UnsupportedModelError
    • UnsupportedModelForSHAPError
    • UnsupportedRModelError
    • UnsupportedColumnTypeError
    • UnsupportedDatasetError
    • UnsupportedFigureError
  • Edit this page
  • Report an issue

validmind.errors

This module contains all the custom errors that are used in the ValidMind Library.

The following base errors are defined for others:

  • BaseError
  • APIRequestError

Base errors

BaseError

classBaseError(Exception):

Common base class for all non-exit exceptions.

BaseError

BaseError(message='')

description

defdescription(self,*args,**kwargs):

Inherited members

  • builtins.BaseException with_traceback, add_note

APIRequestError

classAPIRequestError(BaseError):

Generic error for API request errors that are not known.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

API errors

InvalidAPICredentialsError

classInvalidAPICredentialsError(APIRequestError):

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

MissingAPICredentialsError

classMissingAPICredentialsError(BaseError):

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

Model errors

InvalidXGBoostTrainedModelError

classInvalidXGBoostTrainedModelError(BaseError):

When an invalid XGBoost trained model is used when calling init_r_model.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingModelIdError

classMissingModelIdError(BaseError):

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingOrInvalidModelPredictFnError

classMissingOrInvalidModelPredictFnError(BaseError):

When the PyTorch model is missing a predict function or its predict method does not have the expected arguments.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

UnsupportedModelError

classUnsupportedModelError(BaseError):

When an unsupported model is used.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

UnsupportedModelForSHAPError

classUnsupportedModelForSHAPError(BaseError):

When an unsupported model is used for SHAP importance.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

UnsupportedRModelError

classUnsupportedRModelError(BaseError):

When an unsupported R model is used.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

Test errors

GetTestSuiteError

classGetTestSuiteError(BaseError):

When the test suite could not be found.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

InitializeTestSuiteError

classInitializeTestSuiteError(BaseError):

When the test suite was found but could not be initialized.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

InvalidTestParametersError

classInvalidTestParametersError(BaseError):

When invalid parameters are provided for the test.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

InvalidTestResultsError

classInvalidTestResultsError(APIRequestError):

When an invalid test results object is sent to the API.

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

LoadTestError

classLoadTestError(BaseError):

Exception raised when an error occurs while loading a test.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingRequiredTestInputError

classMissingRequiredTestInputError(BaseError):

When a required test context variable is missing.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

SkipTestError

classSkipTestError(BaseError):

Useful error to throw when a test cannot be executed.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

TestInputInvalidDatasetError

classTestInputInvalidDatasetError(BaseError):

When an invalid dataset is used in a test context.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

Input validation errors

InvalidXGBoostTrainedModelError

classInvalidXGBoostTrainedModelError(BaseError):

When an invalid XGBoost trained model is used when calling init_r_model.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingModelIdError

classMissingModelIdError(BaseError):

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingOrInvalidModelPredictFnError

classMissingOrInvalidModelPredictFnError(BaseError):

When the PyTorch model is missing a predict function or its predict method does not have the expected arguments.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

InvalidTestParametersError

classInvalidTestParametersError(BaseError):

When invalid parameters are provided for the test.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

InvalidTestResultsError

classInvalidTestResultsError(APIRequestError):

When an invalid test results object is sent to the API.

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

MissingRequiredTestInputError

classMissingRequiredTestInputError(BaseError):

When a required test context variable is missing.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

InvalidAPICredentialsError

classInvalidAPICredentialsError(APIRequestError):

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

InvalidContentIdPrefixError

classInvalidContentIdPrefixError(APIRequestError):

When an invalid text content_id is sent to the API.

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

InvalidInputError

classInvalidInputError(BaseError):

When an invalid input object is provided.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

InvalidMetricResultsError

classInvalidMetricResultsError(APIRequestError):

When an invalid metric results object is sent to the API.

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

InvalidParameterError

classInvalidParameterError(BaseError):

When an invalid parameter is provided.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

InvalidProjectError

classInvalidProjectError(APIRequestError):

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

InvalidRequestBodyError

classInvalidRequestBodyError(APIRequestError):

When a POST/PUT request is made with an invalid request body.

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

InvalidTextObjectError

classInvalidTextObjectError(APIRequestError):

When an invalid Metadata (Text) object is sent to the API.

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

InvalidValueFormatterError

classInvalidValueFormatterError(BaseError):

When an invalid value formatter is provided when serializing results.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingAPICredentialsError

classMissingAPICredentialsError(BaseError):

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingCacheResultsArgumentsError

classMissingCacheResultsArgumentsError(BaseError):

When the cache_results function is missing arguments.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingClassLabelError

classMissingClassLabelError(BaseError):

When the one or more class labels are missing from provided dataset targets.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingDependencyError

classMissingDependencyError(BaseError):

When a required dependency is missing.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingDocumentationTemplate

classMissingDocumentationTemplate(BaseError):

When the client config is missing the documentation template.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingRExtrasError

classMissingRExtrasError(BaseError):

When the R extras have not been installed.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

MissingTextContentIdError

classMissingTextContentIdError(APIRequestError):

When a Text object is sent to the API without a content_id.

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

MissingTextContentsError

classMissingTextContentsError(APIRequestError):

When a Text object is sent to the API without a "text" attribute.

Inherited members

  • APIRequestError
  • builtins.BaseException with_traceback, add_note

Unsupported feature errors

UnsupportedModelError

classUnsupportedModelError(BaseError):

When an unsupported model is used.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

UnsupportedModelForSHAPError

classUnsupportedModelForSHAPError(BaseError):

When an unsupported model is used for SHAP importance.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

UnsupportedRModelError

classUnsupportedRModelError(BaseError):

When an unsupported R model is used.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

UnsupportedColumnTypeError

classUnsupportedColumnTypeError(BaseError):

When an unsupported column type is found on a dataset.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

UnsupportedDatasetError

classUnsupportedDatasetError(BaseError):

When an unsupported dataset is used.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note

UnsupportedFigureError

classUnsupportedFigureError(BaseError):

When an unsupported figure object is constructed.

Inherited members

  • BaseError, description
  • builtins.BaseException with_traceback, add_note
lending_club
test_suites

© Copyright 2025 ValidMind Inc. All Rights Reserved.

  • Edit this page
  • Report an issue
Cookie Preferences
  • validmind.com

  • Privacy Policy

  • Terms of Use