Please paste or describe the results you observe instead of the expected results. If you observe an error, please paste the
error message including the full traceback of the exception. For instance the code above raises the following exception:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-671ca7f8e078> in <module>()
5 data = get_data('diabetes')
6
----> 7 s = setup(data, target = 'Wrong Class variable')
1 frames
/usr/local/lib/python3.7/dist-packages/pycaret/internal/tabular.py in setup(data, target, ml_usecase, available_plots, train_size, test_data, preprocess, imputation_type, iterative_imputation_iters, categorical_features, categorical_imputation, categorical_iterative_imputer, ordinal_features, high_cardinality_features, high_cardinality_method, numeric_features, numeric_imputation, numeric_iterative_imputer, date_features, ignore_features, normalize, normalize_method, transformation, transformation_method, handle_unknown_categorical, unknown_categorical_method, pca, pca_method, pca_components, ignore_low_variance, combine_rare_levels, rare_level_threshold, bin_numeric_features, remove_outliers, outliers_threshold, remove_multicollinearity, multicollinearity_threshold, remove_perfect_collinearity, create_clusters, cluster_iter, polynomial_features, polynomial_degree, trigonometry_features, polynomial_threshold, group_features, feature_selection, feature_selection_threshold, feature_selection_method, feature_interaction, feature_ratio, interaction_threshold, fix_imbalance, fix_imbalance_method, transform_target, transform_target_method, data_split_shuffle, data_split_stratify, fold_strategy, fold, fold_shuffle, fold_groups, n_jobs, use_gpu, custom_pipeline, html, session_id, log_experiment, experiment_name, experiment_custom_tags, log_plots, log_profile, log_data, silent, verbose, profile, profile_kwargs, display)
330 if not _is_unsupervised(ml_usecase) and target not in data.columns:
331 raise ValueError(
--> 332 f"Target parameter: {target} does not exist in the data provided."
333 )
334
ValueError: Target parameter: Wrong Class variable does not exist in the data provided.