这是链接https://medium.com/analytics-vidhya/pycaret-101-for-beginners-27d9aefd34c5
在下面的教程中,您将看到一个代码
# initialize setup
from pycaret.regression import *
s = setup(data, target = 'Price', transform_target = True, log_experiment = True, experiment_name = 'diamond')
运行此程序时出现此错误。
AttributeError Traceback (most recent call last)
<ipython-input-19-a403dc1b9b13> in <module>
----> 1
~/opt/anaconda3/envs/pycaretbook/lib/python3.8/site-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, group_names, 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, log_plots, log_profile, log_data, silent, verbose, profile, profile_kwargs, display)
1736 "SubProcess save_model() called =================================="
1737 )
-> 1738 save_model(prep_pipe, "Transformation Pipeline", verbose=False)
1739 logger.info(
1740 "SubProcess save_model() end =================================
~/opt/anaconda3/envs/pycaretbook/lib/python3.8/site-packages/sklearn/utils/_pprint.py in _safe_repr(object, context, maxlevels, level, changed_only)
403 level += 1
404 for o in object:
--> 405 orepr, oreadable, orecur = _safe_repr(
406 o, context, maxlevels, level, changed_only=changed_only)
407 append(orepr)
~/opt/anaconda3/envs/pycaretbook/lib/python3.8/site-packages/sklearn/utils/_pprint.py in _safe_repr(object, context, maxlevels, level, changed_only)
425 params = _changed_params(object)
426 else:
--> 427 params = object.get_params(deep=False)
428 components = []
429 append = components.append
~/opt/anaconda3/envs/pycaretbook/lib/python3.8/site-packages/sklearn/base.py in get_params(self, deep)
193 out = dict()
194 for key in self._get_param_names():
--> 195 value = getattr(self, key)
196 if deep and hasattr(value, 'get_params'):
197 deep_items = value.get_params().items()
AttributeError: 'Make_Time_Features' object has no attribute 'list_of_features'
谁能帮帮我。