Skip to content

Latest commit

 

History

History
127 lines (104 loc) · 6.02 KB

bug_report.yml

File metadata and controls

127 lines (104 loc) · 6.02 KB
NameAboutLabelsAssignees
Bug ReportReport incorrect behavior in the pycaret librarybug
pycaret version checks

Please provide a description of the issue shown in the reproducible example.

Please follow this guide on how to provide a minimal, copy-pastable example that can reproduce your issue.

Our preference would be to try and reproduce the issue with an inbuilt data source in pycaret. If using a data source other than one that is inbuilt in pycaret, please provide the dataset so that the problem can be recreated by the maintainers.

If the code is too long, feel free to put it in a Google Colab notebook or public gist and link it in the issue.

In short, we are going to copy-paste your code to run it and we expect to get the same result as you.

We acknowledge that crafting a minimal reproducible code example requires some effort on your side but it really helps the maintainers quickly reproduce the problem and analyze its cause without any ambiguity. Ambiguous bug reports tend to be slower to fix because they will require more effort and back and forth discussion between the maintainers and the reporter to pin-point the precise conditions necessary to reproduce the problem.

Please describe or show a code example of the expected behavior.

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.

Please paste the output of from pycaret import show_versions; show_versions(). If this does not work, try this instead import pycaret; pycaret.__version__

Thanks for contributing 🎉!