diff --git a/data/annotations/sklearn__annotations.json b/data/annotations/sklearn__annotations.json index 8c7a342ae..e671db89c 100644 --- a/data/annotations/sklearn__annotations.json +++ b/data/annotations/sklearn__annotations.json @@ -758,23 +758,6 @@ } ] }, - "sklearn/sklearn.cluster._bicluster/SpectralBiclustering/__init__/init": { - "target": "sklearn/sklearn.cluster._bicluster/SpectralBiclustering/__init__/init", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'k-means++', 'random'}.", - "enumName": "Init", - "pairs": [ - { - "stringValue": "k-means++", - "instanceName": "K_MEANS" - }, - { - "stringValue": "random", - "instanceName": "RANDOM" - } - ] - }, "sklearn/sklearn.cluster._bicluster/SpectralCoclustering/__init__/svd_method": { "target": "sklearn/sklearn.cluster._bicluster/SpectralCoclustering/__init__/svd_method", "authors": ["$autogen$"], @@ -792,23 +775,6 @@ } ] }, - "sklearn/sklearn.cluster._bisect_k_means/BisectingKMeans/__init__/init": { - "target": "sklearn/sklearn.cluster._bisect_k_means/BisectingKMeans/__init__/init", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'k-means++', 'random'}.", - "enumName": "Init", - "pairs": [ - { - "stringValue": "k-means++", - "instanceName": "K_MEANS" - }, - { - "stringValue": "random", - "instanceName": "RANDOM" - } - ] - }, "sklearn/sklearn.cluster._bisect_k_means/BisectingKMeans/__init__/algorithm": { "target": "sklearn/sklearn.cluster._bisect_k_means/BisectingKMeans/__init__/algorithm", "authors": ["$autogen$"], @@ -893,23 +859,6 @@ } ] }, - "sklearn/sklearn.cluster._kmeans/KMeans/__init__/init": { - "target": "sklearn/sklearn.cluster._kmeans/KMeans/__init__/init", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'k-means++', 'random'}.", - "enumName": "Init", - "pairs": [ - { - "stringValue": "k-means++", - "instanceName": "K_MEANS" - }, - { - "stringValue": "random", - "instanceName": "RANDOM" - } - ] - }, "sklearn/sklearn.cluster._kmeans/KMeans/__init__/algorithm": { "target": "sklearn/sklearn.cluster._kmeans/KMeans/__init__/algorithm", "authors": ["$autogen$"], @@ -935,57 +884,6 @@ } ] }, - "sklearn/sklearn.cluster._kmeans/MiniBatchKMeans/__init__/init": { - "target": "sklearn/sklearn.cluster._kmeans/MiniBatchKMeans/__init__/init", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'k-means++', 'random'}.", - "enumName": "Init", - "pairs": [ - { - "stringValue": "k-means++", - "instanceName": "K_MEANS" - }, - { - "stringValue": "random", - "instanceName": "RANDOM" - } - ] - }, - "sklearn/sklearn.cluster._kmeans/_BaseKMeans/_init_centroids/init": { - "target": "sklearn/sklearn.cluster._kmeans/_BaseKMeans/_init_centroids/init", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'k-means++', 'random'}.", - "enumName": "Init", - "pairs": [ - { - "stringValue": "k-means++", - "instanceName": "K_MEANS" - }, - { - "stringValue": "random", - "instanceName": "RANDOM" - } - ] - }, - "sklearn/sklearn.cluster._kmeans/k_means/init": { - "target": "sklearn/sklearn.cluster._kmeans/k_means/init", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'k-means++', 'random'}.", - "enumName": "Init", - "pairs": [ - { - "stringValue": "k-means++", - "instanceName": "K_MEANS" - }, - { - "stringValue": "random", - "instanceName": "RANDOM" - } - ] - }, "sklearn/sklearn.cluster._kmeans/k_means/algorithm": { "target": "sklearn/sklearn.cluster._kmeans/k_means/algorithm", "authors": ["$autogen$"], @@ -1145,40 +1043,6 @@ } ] }, - "sklearn/sklearn.compose._column_transformer/ColumnTransformer/__init__/remainder": { - "target": "sklearn/sklearn.compose._column_transformer/ColumnTransformer/__init__/remainder", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'drop', 'passthrough'}.", - "enumName": "Remainder", - "pairs": [ - { - "stringValue": "drop", - "instanceName": "DROP" - }, - { - "stringValue": "passthrough", - "instanceName": "PASSTHROUGH" - } - ] - }, - "sklearn/sklearn.compose._column_transformer/make_column_transformer/remainder": { - "target": "sklearn/sklearn.compose._column_transformer/make_column_transformer/remainder", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'drop', 'passthrough'}.", - "enumName": "Remainder", - "pairs": [ - { - "stringValue": "drop", - "instanceName": "DROP" - }, - { - "stringValue": "passthrough", - "instanceName": "PASSTHROUGH" - } - ] - }, "sklearn/sklearn.covariance._empirical_covariance/EmpiricalCovariance/error_norm/norm": { "target": "sklearn/sklearn.covariance._empirical_covariance/EmpiricalCovariance/error_norm/norm", "authors": ["$autogen$"], @@ -1369,23 +1233,6 @@ } ] }, - "sklearn/sklearn.datasets._samples_generator/make_multilabel_classification/return_indicator": { - "target": "sklearn/sklearn.datasets._samples_generator/make_multilabel_classification/return_indicator", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'dense', 'sparse'}.", - "enumName": "ReturnIndicator", - "pairs": [ - { - "stringValue": "dense", - "instanceName": "DENSE" - }, - { - "stringValue": "sparse", - "instanceName": "SPARSE" - } - ] - }, "sklearn/sklearn.datasets._twenty_newsgroups/fetch_20newsgroups/subset": { "target": "sklearn/sklearn.datasets._twenty_newsgroups/fetch_20newsgroups/subset", "authors": ["$autogen$"], @@ -1692,27 +1539,6 @@ } ] }, - "sklearn/sklearn.decomposition._fastica/FastICA/__init__/fun": { - "target": "sklearn/sklearn.decomposition._fastica/FastICA/__init__/fun", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'logcosh', 'exp', 'cube'}.", - "enumName": "Fun", - "pairs": [ - { - "stringValue": "cube", - "instanceName": "CUBE" - }, - { - "stringValue": "exp", - "instanceName": "EXP" - }, - { - "stringValue": "logcosh", - "instanceName": "LOGCOSH" - } - ] - }, "sklearn/sklearn.decomposition._fastica/fastica/algorithm": { "target": "sklearn/sklearn.decomposition._fastica/fastica/algorithm", "authors": ["$autogen$"], @@ -1730,27 +1556,6 @@ } ] }, - "sklearn/sklearn.decomposition._fastica/fastica/fun": { - "target": "sklearn/sklearn.decomposition._fastica/fastica/fun", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'logcosh', 'exp', 'cube'}.", - "enumName": "Fun", - "pairs": [ - { - "stringValue": "cube", - "instanceName": "CUBE" - }, - { - "stringValue": "exp", - "instanceName": "EXP" - }, - { - "stringValue": "logcosh", - "instanceName": "LOGCOSH" - } - ] - }, "sklearn/sklearn.decomposition._kernel_pca/KernelPCA/__init__/kernel": { "target": "sklearn/sklearn.decomposition._kernel_pca/KernelPCA/__init__/kernel", "authors": ["$autogen$"], @@ -1855,27 +1660,6 @@ } ] }, - "sklearn/sklearn.decomposition._nmf/MiniBatchNMF/__init__/beta_loss": { - "target": "sklearn/sklearn.decomposition._nmf/MiniBatchNMF/__init__/beta_loss", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'frobenius', 'kullback-leibler', 'itakura-saito'}.", - "enumName": "BetaLoss", - "pairs": [ - { - "stringValue": "frobenius", - "instanceName": "FROBENIUS" - }, - { - "stringValue": "itakura-saito", - "instanceName": "ITAKURA_SAITO" - }, - { - "stringValue": "kullback-leibler", - "instanceName": "KULLBACK_LEIBLER" - } - ] - }, "sklearn/sklearn.decomposition._nmf/NMF/__init__/init": { "target": "sklearn/sklearn.decomposition._nmf/NMF/__init__/init", "authors": ["$autogen$"], @@ -1922,27 +1706,6 @@ } ] }, - "sklearn/sklearn.decomposition._nmf/NMF/__init__/beta_loss": { - "target": "sklearn/sklearn.decomposition._nmf/NMF/__init__/beta_loss", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'frobenius', 'kullback-leibler', 'itakura-saito'}.", - "enumName": "BetaLoss", - "pairs": [ - { - "stringValue": "frobenius", - "instanceName": "FROBENIUS" - }, - { - "stringValue": "itakura-saito", - "instanceName": "ITAKURA_SAITO" - }, - { - "stringValue": "kullback-leibler", - "instanceName": "KULLBACK_LEIBLER" - } - ] - }, "sklearn/sklearn.decomposition._nmf/NMF/__init__/regularization": { "target": "sklearn/sklearn.decomposition._nmf/NMF/__init__/regularization", "authors": ["$autogen$"], @@ -1964,48 +1727,6 @@ } ] }, - "sklearn/sklearn.decomposition._nmf/_beta_divergence/beta": { - "target": "sklearn/sklearn.decomposition._nmf/_beta_divergence/beta", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'frobenius', 'kullback-leibler', 'itakura-saito'}.", - "enumName": "Beta", - "pairs": [ - { - "stringValue": "frobenius", - "instanceName": "FROBENIUS" - }, - { - "stringValue": "itakura-saito", - "instanceName": "ITAKURA_SAITO" - }, - { - "stringValue": "kullback-leibler", - "instanceName": "KULLBACK_LEIBLER" - } - ] - }, - "sklearn/sklearn.decomposition._nmf/_fit_multiplicative_update/beta_loss": { - "target": "sklearn/sklearn.decomposition._nmf/_fit_multiplicative_update/beta_loss", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'frobenius', 'kullback-leibler', 'itakura-saito'}.", - "enumName": "BetaLoss", - "pairs": [ - { - "stringValue": "frobenius", - "instanceName": "FROBENIUS" - }, - { - "stringValue": "itakura-saito", - "instanceName": "ITAKURA_SAITO" - }, - { - "stringValue": "kullback-leibler", - "instanceName": "KULLBACK_LEIBLER" - } - ] - }, "sklearn/sklearn.decomposition._nmf/_initialize_nmf/init": { "target": "sklearn/sklearn.decomposition._nmf/_initialize_nmf/init", "authors": ["$autogen$"], @@ -2077,27 +1798,6 @@ } ] }, - "sklearn/sklearn.decomposition._nmf/non_negative_factorization/beta_loss": { - "target": "sklearn/sklearn.decomposition._nmf/non_negative_factorization/beta_loss", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'frobenius', 'kullback-leibler', 'itakura-saito'}.", - "enumName": "BetaLoss", - "pairs": [ - { - "stringValue": "frobenius", - "instanceName": "FROBENIUS" - }, - { - "stringValue": "itakura-saito", - "instanceName": "ITAKURA_SAITO" - }, - { - "stringValue": "kullback-leibler", - "instanceName": "KULLBACK_LEIBLER" - } - ] - }, "sklearn/sklearn.decomposition._nmf/non_negative_factorization/regularization": { "target": "sklearn/sklearn.decomposition._nmf/non_negative_factorization/regularization", "authors": ["$autogen$"], @@ -2291,40 +1991,6 @@ } ] }, - "sklearn/sklearn.ensemble._forest/ExtraTreesClassifier/__init__/max_features": { - "target": "sklearn/sklearn.ensemble._forest/ExtraTreesClassifier/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"sqrt\", \"log2\", None}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, - "sklearn/sklearn.ensemble._forest/ExtraTreesClassifier/__init__/class_weight": { - "target": "sklearn/sklearn.ensemble._forest/ExtraTreesClassifier/__init__/class_weight", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"balanced\", \"balanced_subsample\"}.", - "enumName": "ClassWeight", - "pairs": [ - { - "stringValue": "balanced", - "instanceName": "BALANCED" - }, - { - "stringValue": "balanced_subsample", - "instanceName": "BALANCED_SUBSAMPLE" - } - ] - }, "sklearn/sklearn.ensemble._forest/ExtraTreesRegressor/__init__/criterion": { "target": "sklearn/sklearn.ensemble._forest/ExtraTreesRegressor/__init__/criterion", "authors": ["$autogen$"], @@ -2342,23 +2008,6 @@ } ] }, - "sklearn/sklearn.ensemble._forest/ExtraTreesRegressor/__init__/max_features": { - "target": "sklearn/sklearn.ensemble._forest/ExtraTreesRegressor/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"sqrt\", \"log2\", None}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, "sklearn/sklearn.ensemble._forest/RandomForestClassifier/__init__/criterion": { "target": "sklearn/sklearn.ensemble._forest/RandomForestClassifier/__init__/criterion", "authors": ["$autogen$"], @@ -2380,40 +2029,6 @@ } ] }, - "sklearn/sklearn.ensemble._forest/RandomForestClassifier/__init__/max_features": { - "target": "sklearn/sklearn.ensemble._forest/RandomForestClassifier/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"sqrt\", \"log2\", None}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, - "sklearn/sklearn.ensemble._forest/RandomForestClassifier/__init__/class_weight": { - "target": "sklearn/sklearn.ensemble._forest/RandomForestClassifier/__init__/class_weight", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"balanced\", \"balanced_subsample\"}.", - "enumName": "ClassWeight", - "pairs": [ - { - "stringValue": "balanced", - "instanceName": "BALANCED" - }, - { - "stringValue": "balanced_subsample", - "instanceName": "BALANCED_SUBSAMPLE" - } - ] - }, "sklearn/sklearn.ensemble._forest/RandomForestRegressor/__init__/criterion": { "target": "sklearn/sklearn.ensemble._forest/RandomForestRegressor/__init__/criterion", "authors": ["$autogen$"], @@ -2435,23 +2050,6 @@ } ] }, - "sklearn/sklearn.ensemble._forest/RandomForestRegressor/__init__/max_features": { - "target": "sklearn/sklearn.ensemble._forest/RandomForestRegressor/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"sqrt\", \"log2\", None}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, "sklearn/sklearn.ensemble._gb/GradientBoostingClassifier/__init__/loss": { "target": "sklearn/sklearn.ensemble._gb/GradientBoostingClassifier/__init__/loss", "authors": ["$autogen$"], @@ -2494,27 +2092,6 @@ } ] }, - "sklearn/sklearn.ensemble._gb/GradientBoostingClassifier/__init__/max_features": { - "target": "sklearn/sklearn.ensemble._gb/GradientBoostingClassifier/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'auto', 'sqrt', 'log2'}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, "sklearn/sklearn.ensemble._gb/GradientBoostingRegressor/__init__/loss": { "target": "sklearn/sklearn.ensemble._gb/GradientBoostingRegressor/__init__/loss", "authors": ["$autogen$"], @@ -2561,27 +2138,6 @@ } ] }, - "sklearn/sklearn.ensemble._gb/GradientBoostingRegressor/__init__/max_features": { - "target": "sklearn/sklearn.ensemble._gb/GradientBoostingRegressor/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'auto', 'sqrt', 'log2'}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, "sklearn/sklearn.ensemble._hist_gradient_boosting.gradient_boosting/HistGradientBoostingClassifier/__init__/loss": { "target": "sklearn/sklearn.ensemble._hist_gradient_boosting.gradient_boosting/HistGradientBoostingClassifier/__init__/loss", "authors": ["$autogen$"], @@ -2771,40 +2327,6 @@ } ] }, - "sklearn/sklearn.feature_extraction.text/CountVectorizer/__init__/stop_words": { - "target": "sklearn/sklearn.feature_extraction.text/CountVectorizer/__init__/stop_words", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'english'}.", - "enumName": "StopWords", - "pairs": [ - { - "stringValue": "english", - "instanceName": "ENGLISH" - } - ] - }, - "sklearn/sklearn.feature_extraction.text/CountVectorizer/__init__/analyzer": { - "target": "sklearn/sklearn.feature_extraction.text/CountVectorizer/__init__/analyzer", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'word', 'char', 'char_wb'}.", - "enumName": "Analyzer", - "pairs": [ - { - "stringValue": "char", - "instanceName": "CHAR" - }, - { - "stringValue": "char_wb", - "instanceName": "CHAR_WB" - }, - { - "stringValue": "word", - "instanceName": "WORD" - } - ] - }, "sklearn/sklearn.feature_extraction.text/HashingVectorizer/__init__/input": { "target": "sklearn/sklearn.feature_extraction.text/HashingVectorizer/__init__/input", "authors": ["$autogen$"], @@ -2864,40 +2386,6 @@ } ] }, - "sklearn/sklearn.feature_extraction.text/HashingVectorizer/__init__/stop_words": { - "target": "sklearn/sklearn.feature_extraction.text/HashingVectorizer/__init__/stop_words", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'english'}.", - "enumName": "StopWords", - "pairs": [ - { - "stringValue": "english", - "instanceName": "ENGLISH" - } - ] - }, - "sklearn/sklearn.feature_extraction.text/HashingVectorizer/__init__/analyzer": { - "target": "sklearn/sklearn.feature_extraction.text/HashingVectorizer/__init__/analyzer", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'word', 'char', 'char_wb'}.", - "enumName": "Analyzer", - "pairs": [ - { - "stringValue": "char", - "instanceName": "CHAR" - }, - { - "stringValue": "char_wb", - "instanceName": "CHAR_WB" - }, - { - "stringValue": "word", - "instanceName": "WORD" - } - ] - }, "sklearn/sklearn.feature_extraction.text/HashingVectorizer/__init__/norm": { "target": "sklearn/sklearn.feature_extraction.text/HashingVectorizer/__init__/norm", "authors": ["$autogen$"], @@ -2991,40 +2479,6 @@ } ] }, - "sklearn/sklearn.feature_extraction.text/TfidfVectorizer/__init__/analyzer": { - "target": "sklearn/sklearn.feature_extraction.text/TfidfVectorizer/__init__/analyzer", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'word', 'char', 'char_wb'}.", - "enumName": "Analyzer", - "pairs": [ - { - "stringValue": "char", - "instanceName": "CHAR" - }, - { - "stringValue": "char_wb", - "instanceName": "CHAR_WB" - }, - { - "stringValue": "word", - "instanceName": "WORD" - } - ] - }, - "sklearn/sklearn.feature_extraction.text/TfidfVectorizer/__init__/stop_words": { - "target": "sklearn/sklearn.feature_extraction.text/TfidfVectorizer/__init__/stop_words", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'english'}.", - "enumName": "StopWords", - "pairs": [ - { - "stringValue": "english", - "instanceName": "ENGLISH" - } - ] - }, "sklearn/sklearn.feature_extraction.text/TfidfVectorizer/__init__/norm": { "target": "sklearn/sklearn.feature_extraction.text/TfidfVectorizer/__init__/norm", "authors": ["$autogen$"], @@ -3144,51 +2598,6 @@ } ] }, - "sklearn/sklearn.gaussian_process.kernels/PairwiseKernel/__init__/metric": { - "target": "sklearn/sklearn.gaussian_process.kernels/PairwiseKernel/__init__/metric", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"linear\", \"additive_chi2\", \"chi2\", \"poly\", \"polynomial\", \"rbf\", \"laplacian\", \"sigmoid\", \"cosine\"}.", - "enumName": "Metric", - "pairs": [ - { - "stringValue": "additive_chi2", - "instanceName": "ADDITIVE_CHI2" - }, - { - "stringValue": "chi2", - "instanceName": "CHI2" - }, - { - "stringValue": "cosine", - "instanceName": "COSINE" - }, - { - "stringValue": "laplacian", - "instanceName": "LAPLACIAN" - }, - { - "stringValue": "linear", - "instanceName": "LINEAR" - }, - { - "stringValue": "poly", - "instanceName": "POLY" - }, - { - "stringValue": "polynomial", - "instanceName": "POLYNOMIAL" - }, - { - "stringValue": "rbf", - "instanceName": "RBF" - }, - { - "stringValue": "sigmoid", - "instanceName": "SIGMOID" - } - ] - }, "sklearn/sklearn.impute._base/MissingIndicator/__init__/features": { "target": "sklearn/sklearn.impute._base/MissingIndicator/__init__/features", "authors": ["$autogen$"], @@ -3260,36 +2669,6 @@ } ] }, - "sklearn/sklearn.impute._knn/KNNImputer/__init__/weights": { - "target": "sklearn/sklearn.impute._knn/KNNImputer/__init__/weights", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'uniform', 'distance'}.", - "enumName": "Weights", - "pairs": [ - { - "stringValue": "distance", - "instanceName": "DISTANCE" - }, - { - "stringValue": "uniform", - "instanceName": "UNIFORM" - } - ] - }, - "sklearn/sklearn.impute._knn/KNNImputer/__init__/metric": { - "target": "sklearn/sklearn.impute._knn/KNNImputer/__init__/metric", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'nan_euclidean'}.", - "enumName": "Metric", - "pairs": [ - { - "stringValue": "nan_euclidean", - "instanceName": "NAN_EUCLIDEAN" - } - ] - }, "sklearn/sklearn.inspection._partial_dependence/partial_dependence/response_method": { "target": "sklearn/sklearn.inspection._partial_dependence/partial_dependence/response_method", "authors": ["$autogen$"], @@ -3445,27 +2824,6 @@ } ] }, - "sklearn/sklearn.inspection._plot.partial_dependence/PartialDependenceDisplay/__init__/kind": { - "target": "sklearn/sklearn.inspection._plot.partial_dependence/PartialDependenceDisplay/__init__/kind", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'average', 'individual', 'both'}.", - "enumName": "Kind", - "pairs": [ - { - "stringValue": "average", - "instanceName": "AVERAGE" - }, - { - "stringValue": "both", - "instanceName": "BOTH" - }, - { - "stringValue": "individual", - "instanceName": "INDIVIDUAL" - } - ] - }, "sklearn/sklearn.inspection._plot.partial_dependence/PartialDependenceDisplay/from_estimator/response_method": { "target": "sklearn/sklearn.inspection._plot.partial_dependence/PartialDependenceDisplay/from_estimator/response_method", "authors": ["$autogen$"], @@ -3529,27 +2887,6 @@ } ] }, - "sklearn/sklearn.inspection._plot.partial_dependence/plot_partial_dependence/kind": { - "target": "sklearn/sklearn.inspection._plot.partial_dependence/plot_partial_dependence/kind", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'average', 'individual', 'both'}.", - "enumName": "Kind", - "pairs": [ - { - "stringValue": "average", - "instanceName": "AVERAGE" - }, - { - "stringValue": "both", - "instanceName": "BOTH" - }, - { - "stringValue": "individual", - "instanceName": "INDIVIDUAL" - } - ] - }, "sklearn/sklearn.isotonic/IsotonicRegression/__init__/out_of_bounds": { "target": "sklearn/sklearn.isotonic/IsotonicRegression/__init__/out_of_bounds", "authors": ["$autogen$"], @@ -4684,31 +4021,6 @@ } ] }, - "sklearn/sklearn.manifold._spectral_embedding/SpectralEmbedding/__init__/affinity": { - "target": "sklearn/sklearn.manifold._spectral_embedding/SpectralEmbedding/__init__/affinity", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'nearest_neighbors', 'rbf', 'precomputed', 'precomputed_nearest_neighbors'}.", - "enumName": "Affinity", - "pairs": [ - { - "stringValue": "nearest_neighbors", - "instanceName": "NEAREST_NEIGHBORS" - }, - { - "stringValue": "precomputed", - "instanceName": "PRECOMPUTED" - }, - { - "stringValue": "precomputed_nearest_neighbors", - "instanceName": "PRECOMPUTED_NEAREST_NEIGHBORS" - }, - { - "stringValue": "rbf", - "instanceName": "RBF" - } - ] - }, "sklearn/sklearn.manifold._spectral_embedding/SpectralEmbedding/__init__/eigen_solver": { "target": "sklearn/sklearn.manifold._spectral_embedding/SpectralEmbedding/__init__/eigen_solver", "authors": ["$autogen$"], @@ -4751,29 +4063,12 @@ } ] }, - "sklearn/sklearn.manifold._t_sne/TSNE/__init__/init": { - "target": "sklearn/sklearn.manifold._t_sne/TSNE/__init__/init", + "sklearn/sklearn.metrics._base/_average_binary_score/average": { + "target": "sklearn/sklearn.metrics._base/_average_binary_score/average", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'random', 'pca'}.", - "enumName": "Init", - "pairs": [ - { - "stringValue": "pca", - "instanceName": "PCA" - }, - { - "stringValue": "random", - "instanceName": "RANDOM" - } - ] - }, - "sklearn/sklearn.metrics._base/_average_binary_score/average": { - "target": "sklearn/sklearn.metrics._base/_average_binary_score/average", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {None, 'micro', 'macro', 'samples', 'weighted'}.", - "enumName": "Average", + "comment": "I turned this into an enum because the type in the documentation contained {None, 'micro', 'macro', 'samples', 'weighted'}.", + "enumName": "Average", "pairs": [ { "stringValue": "macro", @@ -4848,93 +4143,6 @@ } ] }, - "sklearn/sklearn.metrics._classification/f1_score/average": { - "target": "sklearn/sklearn.metrics._classification/f1_score/average", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'micro', 'macro', 'samples', 'weighted', 'binary'}.", - "enumName": "Average", - "pairs": [ - { - "stringValue": "binary", - "instanceName": "BINARY" - }, - { - "stringValue": "macro", - "instanceName": "MACRO" - }, - { - "stringValue": "micro", - "instanceName": "MICRO" - }, - { - "stringValue": "samples", - "instanceName": "SAMPLES" - }, - { - "stringValue": "weighted", - "instanceName": "WEIGHTED" - } - ] - }, - "sklearn/sklearn.metrics._classification/fbeta_score/average": { - "target": "sklearn/sklearn.metrics._classification/fbeta_score/average", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'micro', 'macro', 'samples', 'weighted', 'binary'}.", - "enumName": "Average", - "pairs": [ - { - "stringValue": "binary", - "instanceName": "BINARY" - }, - { - "stringValue": "macro", - "instanceName": "MACRO" - }, - { - "stringValue": "micro", - "instanceName": "MICRO" - }, - { - "stringValue": "samples", - "instanceName": "SAMPLES" - }, - { - "stringValue": "weighted", - "instanceName": "WEIGHTED" - } - ] - }, - "sklearn/sklearn.metrics._classification/jaccard_score/average": { - "target": "sklearn/sklearn.metrics._classification/jaccard_score/average", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'micro', 'macro', 'samples', 'weighted', 'binary'}.", - "enumName": "Average", - "pairs": [ - { - "stringValue": "binary", - "instanceName": "BINARY" - }, - { - "stringValue": "macro", - "instanceName": "MACRO" - }, - { - "stringValue": "micro", - "instanceName": "MICRO" - }, - { - "stringValue": "samples", - "instanceName": "SAMPLES" - }, - { - "stringValue": "weighted", - "instanceName": "WEIGHTED" - } - ] - }, "sklearn/sklearn.metrics._classification/precision_recall_fscore_support/average": { "target": "sklearn/sklearn.metrics._classification/precision_recall_fscore_support/average", "authors": ["$autogen$"], @@ -4964,64 +4172,6 @@ } ] }, - "sklearn/sklearn.metrics._classification/precision_score/average": { - "target": "sklearn/sklearn.metrics._classification/precision_score/average", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'micro', 'macro', 'samples', 'weighted', 'binary'}.", - "enumName": "Average", - "pairs": [ - { - "stringValue": "binary", - "instanceName": "BINARY" - }, - { - "stringValue": "macro", - "instanceName": "MACRO" - }, - { - "stringValue": "micro", - "instanceName": "MICRO" - }, - { - "stringValue": "samples", - "instanceName": "SAMPLES" - }, - { - "stringValue": "weighted", - "instanceName": "WEIGHTED" - } - ] - }, - "sklearn/sklearn.metrics._classification/recall_score/average": { - "target": "sklearn/sklearn.metrics._classification/recall_score/average", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'micro', 'macro', 'samples', 'weighted', 'binary'}.", - "enumName": "Average", - "pairs": [ - { - "stringValue": "binary", - "instanceName": "BINARY" - }, - { - "stringValue": "macro", - "instanceName": "MACRO" - }, - { - "stringValue": "micro", - "instanceName": "MICRO" - }, - { - "stringValue": "samples", - "instanceName": "SAMPLES" - }, - { - "stringValue": "weighted", - "instanceName": "WEIGHTED" - } - ] - }, "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/from_estimator/normalize": { "target": "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/from_estimator/normalize", "authors": ["$autogen$"], @@ -5043,23 +4193,6 @@ } ] }, - "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/from_estimator/xticks_rotation": { - "target": "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/from_estimator/xticks_rotation", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'vertical', 'horizontal'}.", - "enumName": "XticksRotation", - "pairs": [ - { - "stringValue": "horizontal", - "instanceName": "HORIZONTAL" - }, - { - "stringValue": "vertical", - "instanceName": "VERTICAL" - } - ] - }, "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/from_predictions/normalize": { "target": "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/from_predictions/normalize", "authors": ["$autogen$"], @@ -5081,40 +4214,6 @@ } ] }, - "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/from_predictions/xticks_rotation": { - "target": "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/from_predictions/xticks_rotation", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'vertical', 'horizontal'}.", - "enumName": "XticksRotation", - "pairs": [ - { - "stringValue": "horizontal", - "instanceName": "HORIZONTAL" - }, - { - "stringValue": "vertical", - "instanceName": "VERTICAL" - } - ] - }, - "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/plot/xticks_rotation": { - "target": "sklearn/sklearn.metrics._plot.confusion_matrix/ConfusionMatrixDisplay/plot/xticks_rotation", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'vertical', 'horizontal'}.", - "enumName": "XticksRotation", - "pairs": [ - { - "stringValue": "horizontal", - "instanceName": "HORIZONTAL" - }, - { - "stringValue": "vertical", - "instanceName": "VERTICAL" - } - ] - }, "sklearn/sklearn.metrics._plot.confusion_matrix/plot_confusion_matrix/normalize": { "target": "sklearn/sklearn.metrics._plot.confusion_matrix/plot_confusion_matrix/normalize", "authors": ["$autogen$"], @@ -5136,23 +4235,6 @@ } ] }, - "sklearn/sklearn.metrics._plot.confusion_matrix/plot_confusion_matrix/xticks_rotation": { - "target": "sklearn/sklearn.metrics._plot.confusion_matrix/plot_confusion_matrix/xticks_rotation", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'vertical', 'horizontal'}.", - "enumName": "XticksRotation", - "pairs": [ - { - "stringValue": "horizontal", - "instanceName": "HORIZONTAL" - }, - { - "stringValue": "vertical", - "instanceName": "VERTICAL" - } - ] - }, "sklearn/sklearn.metrics._plot.det_curve/DetCurveDisplay/from_estimator/response_method": { "target": "sklearn/sklearn.metrics._plot.det_curve/DetCurveDisplay/from_estimator/response_method", "authors": ["$autogen$"], @@ -5313,294 +4395,66 @@ } ] }, - "sklearn/sklearn.metrics._ranking/average_precision_score/average": { - "target": "sklearn/sklearn.metrics._ranking/average_precision_score/average", + "sklearn/sklearn.metrics._ranking/roc_auc_score/multi_class": { + "target": "sklearn/sklearn.metrics._ranking/roc_auc_score/multi_class", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'micro', 'samples', 'weighted', 'macro'}.", - "enumName": "Average", + "comment": "I turned this into an enum because the type in the documentation contained {'raise', 'ovr', 'ovo'}.", + "enumName": "MultiClass", "pairs": [ { - "stringValue": "macro", - "instanceName": "MACRO" - }, - { - "stringValue": "micro", - "instanceName": "MICRO" + "stringValue": "ovo", + "instanceName": "OVO" }, { - "stringValue": "samples", - "instanceName": "SAMPLES" + "stringValue": "ovr", + "instanceName": "OVR" }, { - "stringValue": "weighted", - "instanceName": "WEIGHTED" + "stringValue": "raise", + "instanceName": "RAISE" } ] }, - "sklearn/sklearn.metrics._ranking/roc_auc_score/average": { - "target": "sklearn/sklearn.metrics._ranking/roc_auc_score/average", + "sklearn/sklearn.mixture._bayesian_mixture/BayesianGaussianMixture/__init__/covariance_type": { + "target": "sklearn/sklearn.mixture._bayesian_mixture/BayesianGaussianMixture/__init__/covariance_type", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'micro', 'macro', 'samples', 'weighted'}.", - "enumName": "Average", + "comment": "I turned this into an enum because the type in the documentation contained {'full', 'tied', 'diag', 'spherical'}.", + "enumName": "CovarianceType", "pairs": [ { - "stringValue": "macro", - "instanceName": "MACRO" + "stringValue": "diag", + "instanceName": "DIAG" }, { - "stringValue": "micro", - "instanceName": "MICRO" + "stringValue": "full", + "instanceName": "FULL" }, { - "stringValue": "samples", - "instanceName": "SAMPLES" + "stringValue": "spherical", + "instanceName": "SPHERICAL" }, { - "stringValue": "weighted", - "instanceName": "WEIGHTED" + "stringValue": "tied", + "instanceName": "TIED" } ] }, - "sklearn/sklearn.metrics._ranking/roc_auc_score/multi_class": { - "target": "sklearn/sklearn.metrics._ranking/roc_auc_score/multi_class", + "sklearn/sklearn.mixture._bayesian_mixture/BayesianGaussianMixture/__init__/init_params": { + "target": "sklearn/sklearn.mixture._bayesian_mixture/BayesianGaussianMixture/__init__/init_params", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raise', 'ovr', 'ovo'}.", - "enumName": "MultiClass", + "comment": "I turned this into an enum because the type in the documentation contained {'kmeans', 'k-means++', 'random', 'random_from_data'}.", + "enumName": "InitParams", "pairs": [ { - "stringValue": "ovo", - "instanceName": "OVO" + "stringValue": "k-means++", + "instanceName": "K_MEANS" }, { - "stringValue": "ovr", - "instanceName": "OVR" - }, - { - "stringValue": "raise", - "instanceName": "RAISE" - } - ] - }, - "sklearn/sklearn.metrics._regression/d2_absolute_error_score/multioutput": { - "target": "sklearn/sklearn.metrics._regression/d2_absolute_error_score/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - } - ] - }, - "sklearn/sklearn.metrics._regression/d2_pinball_score/multioutput": { - "target": "sklearn/sklearn.metrics._regression/d2_pinball_score/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - } - ] - }, - "sklearn/sklearn.metrics._regression/explained_variance_score/multioutput": { - "target": "sklearn/sklearn.metrics._regression/explained_variance_score/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average', 'variance_weighted'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - }, - { - "stringValue": "variance_weighted", - "instanceName": "VARIANCE_WEIGHTED" - } - ] - }, - "sklearn/sklearn.metrics._regression/mean_absolute_error/multioutput": { - "target": "sklearn/sklearn.metrics._regression/mean_absolute_error/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - } - ] - }, - "sklearn/sklearn.metrics._regression/mean_absolute_percentage_error/multioutput": { - "target": "sklearn/sklearn.metrics._regression/mean_absolute_percentage_error/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - } - ] - }, - "sklearn/sklearn.metrics._regression/mean_pinball_loss/multioutput": { - "target": "sklearn/sklearn.metrics._regression/mean_pinball_loss/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - } - ] - }, - "sklearn/sklearn.metrics._regression/mean_squared_error/multioutput": { - "target": "sklearn/sklearn.metrics._regression/mean_squared_error/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - } - ] - }, - "sklearn/sklearn.metrics._regression/mean_squared_log_error/multioutput": { - "target": "sklearn/sklearn.metrics._regression/mean_squared_log_error/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - } - ] - }, - "sklearn/sklearn.metrics._regression/median_absolute_error/multioutput": { - "target": "sklearn/sklearn.metrics._regression/median_absolute_error/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - } - ] - }, - "sklearn/sklearn.metrics._regression/r2_score/multioutput": { - "target": "sklearn/sklearn.metrics._regression/r2_score/multioutput", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'raw_values', 'uniform_average', 'variance_weighted'}.", - "enumName": "Multioutput", - "pairs": [ - { - "stringValue": "raw_values", - "instanceName": "RAW_VALUES" - }, - { - "stringValue": "uniform_average", - "instanceName": "UNIFORM_AVERAGE" - }, - { - "stringValue": "variance_weighted", - "instanceName": "VARIANCE_WEIGHTED" - } - ] - }, - "sklearn/sklearn.mixture._bayesian_mixture/BayesianGaussianMixture/__init__/covariance_type": { - "target": "sklearn/sklearn.mixture._bayesian_mixture/BayesianGaussianMixture/__init__/covariance_type", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'full', 'tied', 'diag', 'spherical'}.", - "enumName": "CovarianceType", - "pairs": [ - { - "stringValue": "diag", - "instanceName": "DIAG" - }, - { - "stringValue": "full", - "instanceName": "FULL" - }, - { - "stringValue": "spherical", - "instanceName": "SPHERICAL" - }, - { - "stringValue": "tied", - "instanceName": "TIED" - } - ] - }, - "sklearn/sklearn.mixture._bayesian_mixture/BayesianGaussianMixture/__init__/init_params": { - "target": "sklearn/sklearn.mixture._bayesian_mixture/BayesianGaussianMixture/__init__/init_params", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'kmeans', 'k-means++', 'random', 'random_from_data'}.", - "enumName": "InitParams", - "pairs": [ - { - "stringValue": "k-means++", - "instanceName": "K_MEANS" - }, - { - "stringValue": "kmeans", - "instanceName": "KMEANS" + "stringValue": "kmeans", + "instanceName": "KMEANS" }, { "stringValue": "random", @@ -5762,40 +4616,6 @@ } ] }, - "sklearn/sklearn.model_selection._search_successive_halving/HalvingGridSearchCV/__init__/min_resources": { - "target": "sklearn/sklearn.model_selection._search_successive_halving/HalvingGridSearchCV/__init__/min_resources", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'exhaust', 'smallest'}.", - "enumName": "MinResources", - "pairs": [ - { - "stringValue": "exhaust", - "instanceName": "EXHAUST" - }, - { - "stringValue": "smallest", - "instanceName": "SMALLEST" - } - ] - }, - "sklearn/sklearn.model_selection._search_successive_halving/HalvingRandomSearchCV/__init__/min_resources": { - "target": "sklearn/sklearn.model_selection._search_successive_halving/HalvingRandomSearchCV/__init__/min_resources", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'exhaust', 'smallest'}.", - "enumName": "MinResources", - "pairs": [ - { - "stringValue": "exhaust", - "instanceName": "EXHAUST" - }, - { - "stringValue": "smallest", - "instanceName": "SMALLEST" - } - ] - }, "sklearn/sklearn.model_selection._validation/cross_val_predict/method": { "target": "sklearn/sklearn.model_selection._validation/cross_val_predict/method", "authors": ["$autogen$"], @@ -5872,23 +4692,6 @@ } ] }, - "sklearn/sklearn.neighbors._classification/KNeighborsClassifier/__init__/weights": { - "target": "sklearn/sklearn.neighbors._classification/KNeighborsClassifier/__init__/weights", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'uniform', 'distance'}.", - "enumName": "Weights", - "pairs": [ - { - "stringValue": "distance", - "instanceName": "DISTANCE" - }, - { - "stringValue": "uniform", - "instanceName": "UNIFORM" - } - ] - }, "sklearn/sklearn.neighbors._classification/KNeighborsClassifier/__init__/algorithm": { "target": "sklearn/sklearn.neighbors._classification/KNeighborsClassifier/__init__/algorithm", "authors": ["$autogen$"], @@ -5914,23 +4717,6 @@ } ] }, - "sklearn/sklearn.neighbors._classification/RadiusNeighborsClassifier/__init__/weights": { - "target": "sklearn/sklearn.neighbors._classification/RadiusNeighborsClassifier/__init__/weights", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'uniform', 'distance'}.", - "enumName": "Weights", - "pairs": [ - { - "stringValue": "distance", - "instanceName": "DISTANCE" - }, - { - "stringValue": "uniform", - "instanceName": "UNIFORM" - } - ] - }, "sklearn/sklearn.neighbors._classification/RadiusNeighborsClassifier/__init__/algorithm": { "target": "sklearn/sklearn.neighbors._classification/RadiusNeighborsClassifier/__init__/algorithm", "authors": ["$autogen$"], @@ -6166,54 +4952,58 @@ } ] }, - "sklearn/sklearn.neighbors._nca/NeighborhoodComponentsAnalysis/__init__/init": { - "target": "sklearn/sklearn.neighbors._nca/NeighborhoodComponentsAnalysis/__init__/init", + "sklearn/sklearn.neighbors._regression/KNeighborsRegressor/__init__/algorithm": { + "target": "sklearn/sklearn.neighbors._regression/KNeighborsRegressor/__init__/algorithm", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'auto', 'pca', 'lda', 'identity', 'random'}.", - "enumName": "Init", + "comment": "I turned this into an enum because the type in the documentation contained {'auto', 'ball_tree', 'kd_tree', 'brute'}.", + "enumName": "Algorithm", "pairs": [ { "stringValue": "auto", "instanceName": "AUTO" }, { - "stringValue": "identity", - "instanceName": "IDENTITY" - }, - { - "stringValue": "lda", - "instanceName": "LDA" + "stringValue": "ball_tree", + "instanceName": "BALL_TREE" }, { - "stringValue": "pca", - "instanceName": "PCA" + "stringValue": "brute", + "instanceName": "BRUTE" }, { - "stringValue": "random", - "instanceName": "RANDOM" + "stringValue": "kd_tree", + "instanceName": "KD_TREE" } ] }, - "sklearn/sklearn.neighbors._regression/KNeighborsRegressor/__init__/weights": { - "target": "sklearn/sklearn.neighbors._regression/KNeighborsRegressor/__init__/weights", + "sklearn/sklearn.neighbors._regression/RadiusNeighborsRegressor/__init__/algorithm": { + "target": "sklearn/sklearn.neighbors._regression/RadiusNeighborsRegressor/__init__/algorithm", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'uniform', 'distance'}.", - "enumName": "Weights", + "comment": "I turned this into an enum because the type in the documentation contained {'auto', 'ball_tree', 'kd_tree', 'brute'}.", + "enumName": "Algorithm", "pairs": [ { - "stringValue": "distance", - "instanceName": "DISTANCE" + "stringValue": "auto", + "instanceName": "AUTO" }, { - "stringValue": "uniform", - "instanceName": "UNIFORM" + "stringValue": "ball_tree", + "instanceName": "BALL_TREE" + }, + { + "stringValue": "brute", + "instanceName": "BRUTE" + }, + { + "stringValue": "kd_tree", + "instanceName": "KD_TREE" } ] }, - "sklearn/sklearn.neighbors._regression/KNeighborsRegressor/__init__/algorithm": { - "target": "sklearn/sklearn.neighbors._regression/KNeighborsRegressor/__init__/algorithm", + "sklearn/sklearn.neighbors._unsupervised/NearestNeighbors/__init__/algorithm": { + "target": "sklearn/sklearn.neighbors._unsupervised/NearestNeighbors/__init__/algorithm", "authors": ["$autogen$"], "reviewers": [], "comment": "I turned this into an enum because the type in the documentation contained {'auto', 'ball_tree', 'kd_tree', 'brute'}.", @@ -6237,75 +5027,8 @@ } ] }, - "sklearn/sklearn.neighbors._regression/RadiusNeighborsRegressor/__init__/weights": { - "target": "sklearn/sklearn.neighbors._regression/RadiusNeighborsRegressor/__init__/weights", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'uniform', 'distance'}.", - "enumName": "Weights", - "pairs": [ - { - "stringValue": "distance", - "instanceName": "DISTANCE" - }, - { - "stringValue": "uniform", - "instanceName": "UNIFORM" - } - ] - }, - "sklearn/sklearn.neighbors._regression/RadiusNeighborsRegressor/__init__/algorithm": { - "target": "sklearn/sklearn.neighbors._regression/RadiusNeighborsRegressor/__init__/algorithm", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'auto', 'ball_tree', 'kd_tree', 'brute'}.", - "enumName": "Algorithm", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "ball_tree", - "instanceName": "BALL_TREE" - }, - { - "stringValue": "brute", - "instanceName": "BRUTE" - }, - { - "stringValue": "kd_tree", - "instanceName": "KD_TREE" - } - ] - }, - "sklearn/sklearn.neighbors._unsupervised/NearestNeighbors/__init__/algorithm": { - "target": "sklearn/sklearn.neighbors._unsupervised/NearestNeighbors/__init__/algorithm", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'auto', 'ball_tree', 'kd_tree', 'brute'}.", - "enumName": "Algorithm", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "ball_tree", - "instanceName": "BALL_TREE" - }, - { - "stringValue": "brute", - "instanceName": "BRUTE" - }, - { - "stringValue": "kd_tree", - "instanceName": "KD_TREE" - } - ] - }, - "sklearn/sklearn.neural_network._multilayer_perceptron/MLPClassifier/__init__/activation": { - "target": "sklearn/sklearn.neural_network._multilayer_perceptron/MLPClassifier/__init__/activation", + "sklearn/sklearn.neural_network._multilayer_perceptron/MLPClassifier/__init__/activation": { + "target": "sklearn/sklearn.neural_network._multilayer_perceptron/MLPClassifier/__init__/activation", "authors": ["$autogen$"], "reviewers": [], "comment": "I turned this into an enum because the type in the documentation contained {'identity', 'logistic', 'tanh', 'relu'}.", @@ -6611,23 +5334,6 @@ } ] }, - "sklearn/sklearn.preprocessing._encoders/OneHotEncoder/__init__/drop": { - "target": "sklearn/sklearn.preprocessing._encoders/OneHotEncoder/__init__/drop", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'first', 'if_binary'}.", - "enumName": "Drop", - "pairs": [ - { - "stringValue": "first", - "instanceName": "FIRST" - }, - { - "stringValue": "if_binary", - "instanceName": "IF_BINARY" - } - ] - }, "sklearn/sklearn.preprocessing._encoders/OneHotEncoder/__init__/handle_unknown": { "target": "sklearn/sklearn.preprocessing._encoders/OneHotEncoder/__init__/handle_unknown", "authors": ["$autogen$"], @@ -6683,23 +5389,6 @@ } ] }, - "sklearn/sklearn.preprocessing._polynomial/SplineTransformer/__init__/knots": { - "target": "sklearn/sklearn.preprocessing._polynomial/SplineTransformer/__init__/knots", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'uniform', 'quantile'}.", - "enumName": "Knots", - "pairs": [ - { - "stringValue": "quantile", - "instanceName": "QUANTILE" - }, - { - "stringValue": "uniform", - "instanceName": "UNIFORM" - } - ] - }, "sklearn/sklearn.preprocessing._polynomial/SplineTransformer/__init__/extrapolation": { "target": "sklearn/sklearn.preprocessing._polynomial/SplineTransformer/__init__/extrapolation", "authors": ["$autogen$"], @@ -6746,57 +5435,6 @@ } ] }, - "sklearn/sklearn.semi_supervised._label_propagation/BaseLabelPropagation/__init__/kernel": { - "target": "sklearn/sklearn.semi_supervised._label_propagation/BaseLabelPropagation/__init__/kernel", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'knn', 'rbf'}.", - "enumName": "Kernel", - "pairs": [ - { - "stringValue": "knn", - "instanceName": "KNN" - }, - { - "stringValue": "rbf", - "instanceName": "RBF" - } - ] - }, - "sklearn/sklearn.semi_supervised._label_propagation/LabelPropagation/__init__/kernel": { - "target": "sklearn/sklearn.semi_supervised._label_propagation/LabelPropagation/__init__/kernel", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'knn', 'rbf'}.", - "enumName": "Kernel", - "pairs": [ - { - "stringValue": "knn", - "instanceName": "KNN" - }, - { - "stringValue": "rbf", - "instanceName": "RBF" - } - ] - }, - "sklearn/sklearn.semi_supervised._label_propagation/LabelSpreading/__init__/kernel": { - "target": "sklearn/sklearn.semi_supervised._label_propagation/LabelSpreading/__init__/kernel", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'knn', 'rbf'}.", - "enumName": "Kernel", - "pairs": [ - { - "stringValue": "knn", - "instanceName": "KNN" - }, - { - "stringValue": "rbf", - "instanceName": "RBF" - } - ] - }, "sklearn/sklearn.semi_supervised._self_training/SelfTrainingClassifier/__init__/criterion": { "target": "sklearn/sklearn.semi_supervised._self_training/SelfTrainingClassifier/__init__/criterion", "authors": ["$autogen$"], @@ -6838,350 +5476,102 @@ "comment": "I turned this into an enum because the type in the documentation contained {'ovr', 'crammer_singer'}.", "enumName": "MultiClass", "pairs": [ - { - "stringValue": "crammer_singer", - "instanceName": "CRAMMER_SINGER" - }, - { - "stringValue": "ovr", - "instanceName": "OVR" - } - ] - }, - "sklearn/sklearn.svm._base/_fit_liblinear/loss": { - "target": "sklearn/sklearn.svm._base/_fit_liblinear/loss", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'logistic_regression', 'hinge', 'squared_hinge', 'epsilon_insensitive', 'squared_epsilon_insensitive}.", - "enumName": "Loss", - "pairs": [ - { - "stringValue": "epsilon_insensitive", - "instanceName": "EPSILON_INSENSITIVE" - }, - { - "stringValue": "hinge", - "instanceName": "HINGE" - }, - { - "stringValue": "logistic_regression", - "instanceName": "LOGISTIC_REGRESSION" - }, - { - "stringValue": "squared_hinge", - "instanceName": "SQUARED_HINGE" - } - ] - }, - "sklearn/sklearn.svm._bounds/l1_min_c/loss": { - "target": "sklearn/sklearn.svm._bounds/l1_min_c/loss", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'squared_hinge', 'log'}.", - "enumName": "Loss", - "pairs": [ - { - "stringValue": "log", - "instanceName": "LOG" - }, - { - "stringValue": "squared_hinge", - "instanceName": "SQUARED_HINGE" - } - ] - }, - "sklearn/sklearn.svm._classes/LinearSVC/__init__/penalty": { - "target": "sklearn/sklearn.svm._classes/LinearSVC/__init__/penalty", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'l1', 'l2'}.", - "enumName": "Penalty", - "pairs": [ - { - "stringValue": "l1", - "instanceName": "L1" - }, - { - "stringValue": "l2", - "instanceName": "L2" - } - ] - }, - "sklearn/sklearn.svm._classes/LinearSVC/__init__/loss": { - "target": "sklearn/sklearn.svm._classes/LinearSVC/__init__/loss", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'hinge', 'squared_hinge'}.", - "enumName": "Loss", - "pairs": [ - { - "stringValue": "hinge", - "instanceName": "HINGE" - }, - { - "stringValue": "squared_hinge", - "instanceName": "SQUARED_HINGE" - } - ] - }, - "sklearn/sklearn.svm._classes/LinearSVC/__init__/multi_class": { - "target": "sklearn/sklearn.svm._classes/LinearSVC/__init__/multi_class", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'ovr', 'crammer_singer'}.", - "enumName": "MultiClass", - "pairs": [ - { - "stringValue": "crammer_singer", - "instanceName": "CRAMMER_SINGER" - }, - { - "stringValue": "ovr", - "instanceName": "OVR" - } - ] - }, - "sklearn/sklearn.svm._classes/LinearSVR/__init__/loss": { - "target": "sklearn/sklearn.svm._classes/LinearSVR/__init__/loss", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'epsilon_insensitive', 'squared_epsilon_insensitive'}.", - "enumName": "Loss", - "pairs": [ - { - "stringValue": "epsilon_insensitive", - "instanceName": "EPSILON_INSENSITIVE" - }, - { - "stringValue": "squared_epsilon_insensitive", - "instanceName": "SQUARED_EPSILON_INSENSITIVE" - } - ] - }, - "sklearn/sklearn.svm._classes/NuSVC/__init__/kernel": { - "target": "sklearn/sklearn.svm._classes/NuSVC/__init__/kernel", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}.", - "enumName": "Kernel", - "pairs": [ - { - "stringValue": "linear", - "instanceName": "LINEAR" - }, - { - "stringValue": "poly", - "instanceName": "POLY" - }, - { - "stringValue": "precomputed", - "instanceName": "PRECOMPUTED" - }, - { - "stringValue": "rbf", - "instanceName": "RBF" - }, - { - "stringValue": "sigmoid", - "instanceName": "SIGMOID" - } - ] - }, - "sklearn/sklearn.svm._classes/NuSVC/__init__/gamma": { - "target": "sklearn/sklearn.svm._classes/NuSVC/__init__/gamma", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'scale', 'auto'}.", - "enumName": "Gamma", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "scale", - "instanceName": "SCALE" - } - ] - }, - "sklearn/sklearn.svm._classes/NuSVC/__init__/class_weight": { - "target": "sklearn/sklearn.svm._classes/NuSVC/__init__/class_weight", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {dict, 'balanced'}.", - "enumName": "ClassWeight", - "pairs": [ - { - "stringValue": "balanced", - "instanceName": "BALANCED" - } - ] - }, - "sklearn/sklearn.svm._classes/NuSVC/__init__/decision_function_shape": { - "target": "sklearn/sklearn.svm._classes/NuSVC/__init__/decision_function_shape", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'ovo', 'ovr'}.", - "enumName": "DecisionFunctionShape", - "pairs": [ - { - "stringValue": "ovo", - "instanceName": "OVO" - }, - { - "stringValue": "ovr", - "instanceName": "OVR" - } - ] - }, - "sklearn/sklearn.svm._classes/NuSVR/__init__/kernel": { - "target": "sklearn/sklearn.svm._classes/NuSVR/__init__/kernel", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}.", - "enumName": "Kernel", - "pairs": [ - { - "stringValue": "linear", - "instanceName": "LINEAR" - }, - { - "stringValue": "poly", - "instanceName": "POLY" - }, - { - "stringValue": "precomputed", - "instanceName": "PRECOMPUTED" - }, - { - "stringValue": "rbf", - "instanceName": "RBF" - }, - { - "stringValue": "sigmoid", - "instanceName": "SIGMOID" - } - ] - }, - "sklearn/sklearn.svm._classes/NuSVR/__init__/gamma": { - "target": "sklearn/sklearn.svm._classes/NuSVR/__init__/gamma", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'scale', 'auto'}.", - "enumName": "Gamma", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" + { + "stringValue": "crammer_singer", + "instanceName": "CRAMMER_SINGER" }, { - "stringValue": "scale", - "instanceName": "SCALE" + "stringValue": "ovr", + "instanceName": "OVR" } ] }, - "sklearn/sklearn.svm._classes/OneClassSVM/__init__/kernel": { - "target": "sklearn/sklearn.svm._classes/OneClassSVM/__init__/kernel", + "sklearn/sklearn.svm._base/_fit_liblinear/loss": { + "target": "sklearn/sklearn.svm._base/_fit_liblinear/loss", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}.", - "enumName": "Kernel", + "comment": "I turned this into an enum because the type in the documentation contained {'logistic_regression', 'hinge', 'squared_hinge', 'epsilon_insensitive', 'squared_epsilon_insensitive}.", + "enumName": "Loss", "pairs": [ { - "stringValue": "linear", - "instanceName": "LINEAR" - }, - { - "stringValue": "poly", - "instanceName": "POLY" + "stringValue": "epsilon_insensitive", + "instanceName": "EPSILON_INSENSITIVE" }, { - "stringValue": "precomputed", - "instanceName": "PRECOMPUTED" + "stringValue": "hinge", + "instanceName": "HINGE" }, { - "stringValue": "rbf", - "instanceName": "RBF" + "stringValue": "logistic_regression", + "instanceName": "LOGISTIC_REGRESSION" }, { - "stringValue": "sigmoid", - "instanceName": "SIGMOID" + "stringValue": "squared_hinge", + "instanceName": "SQUARED_HINGE" } ] }, - "sklearn/sklearn.svm._classes/OneClassSVM/__init__/gamma": { - "target": "sklearn/sklearn.svm._classes/OneClassSVM/__init__/gamma", + "sklearn/sklearn.svm._bounds/l1_min_c/loss": { + "target": "sklearn/sklearn.svm._bounds/l1_min_c/loss", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'scale', 'auto'}.", - "enumName": "Gamma", + "comment": "I turned this into an enum because the type in the documentation contained {'squared_hinge', 'log'}.", + "enumName": "Loss", "pairs": [ { - "stringValue": "auto", - "instanceName": "AUTO" + "stringValue": "log", + "instanceName": "LOG" }, { - "stringValue": "scale", - "instanceName": "SCALE" + "stringValue": "squared_hinge", + "instanceName": "SQUARED_HINGE" } ] }, - "sklearn/sklearn.svm._classes/SVC/__init__/kernel": { - "target": "sklearn/sklearn.svm._classes/SVC/__init__/kernel", + "sklearn/sklearn.svm._classes/LinearSVC/__init__/penalty": { + "target": "sklearn/sklearn.svm._classes/LinearSVC/__init__/penalty", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}.", - "enumName": "Kernel", + "comment": "I turned this into an enum because the type in the documentation contained {'l1', 'l2'}.", + "enumName": "Penalty", "pairs": [ { - "stringValue": "linear", - "instanceName": "LINEAR" - }, - { - "stringValue": "poly", - "instanceName": "POLY" - }, - { - "stringValue": "precomputed", - "instanceName": "PRECOMPUTED" - }, - { - "stringValue": "rbf", - "instanceName": "RBF" + "stringValue": "l1", + "instanceName": "L1" }, { - "stringValue": "sigmoid", - "instanceName": "SIGMOID" + "stringValue": "l2", + "instanceName": "L2" } ] }, - "sklearn/sklearn.svm._classes/SVC/__init__/gamma": { - "target": "sklearn/sklearn.svm._classes/SVC/__init__/gamma", + "sklearn/sklearn.svm._classes/LinearSVC/__init__/loss": { + "target": "sklearn/sklearn.svm._classes/LinearSVC/__init__/loss", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'scale', 'auto'}.", - "enumName": "Gamma", + "comment": "I turned this into an enum because the type in the documentation contained {'hinge', 'squared_hinge'}.", + "enumName": "Loss", "pairs": [ { - "stringValue": "auto", - "instanceName": "AUTO" + "stringValue": "hinge", + "instanceName": "HINGE" }, { - "stringValue": "scale", - "instanceName": "SCALE" + "stringValue": "squared_hinge", + "instanceName": "SQUARED_HINGE" } ] }, - "sklearn/sklearn.svm._classes/SVC/__init__/decision_function_shape": { - "target": "sklearn/sklearn.svm._classes/SVC/__init__/decision_function_shape", + "sklearn/sklearn.svm._classes/LinearSVC/__init__/multi_class": { + "target": "sklearn/sklearn.svm._classes/LinearSVC/__init__/multi_class", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'ovo', 'ovr'}.", - "enumName": "DecisionFunctionShape", + "comment": "I turned this into an enum because the type in the documentation contained {'ovr', 'crammer_singer'}.", + "enumName": "MultiClass", "pairs": [ { - "stringValue": "ovo", - "instanceName": "OVO" + "stringValue": "crammer_singer", + "instanceName": "CRAMMER_SINGER" }, { "stringValue": "ovr", @@ -7189,49 +5579,67 @@ } ] }, - "sklearn/sklearn.svm._classes/SVR/__init__/kernel": { - "target": "sklearn/sklearn.svm._classes/SVR/__init__/kernel", + "sklearn/sklearn.svm._classes/LinearSVR/__init__/loss": { + "target": "sklearn/sklearn.svm._classes/LinearSVR/__init__/loss", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}.", - "enumName": "Kernel", + "comment": "I turned this into an enum because the type in the documentation contained {'epsilon_insensitive', 'squared_epsilon_insensitive'}.", + "enumName": "Loss", "pairs": [ { - "stringValue": "linear", - "instanceName": "LINEAR" + "stringValue": "epsilon_insensitive", + "instanceName": "EPSILON_INSENSITIVE" }, { - "stringValue": "poly", - "instanceName": "POLY" - }, + "stringValue": "squared_epsilon_insensitive", + "instanceName": "SQUARED_EPSILON_INSENSITIVE" + } + ] + }, + "sklearn/sklearn.svm._classes/NuSVC/__init__/class_weight": { + "target": "sklearn/sklearn.svm._classes/NuSVC/__init__/class_weight", + "authors": ["$autogen$"], + "reviewers": [], + "comment": "I turned this into an enum because the type in the documentation contained {dict, 'balanced'}.", + "enumName": "ClassWeight", + "pairs": [ { - "stringValue": "precomputed", - "instanceName": "PRECOMPUTED" - }, + "stringValue": "balanced", + "instanceName": "BALANCED" + } + ] + }, + "sklearn/sklearn.svm._classes/NuSVC/__init__/decision_function_shape": { + "target": "sklearn/sklearn.svm._classes/NuSVC/__init__/decision_function_shape", + "authors": ["$autogen$"], + "reviewers": [], + "comment": "I turned this into an enum because the type in the documentation contained {'ovo', 'ovr'}.", + "enumName": "DecisionFunctionShape", + "pairs": [ { - "stringValue": "rbf", - "instanceName": "RBF" + "stringValue": "ovo", + "instanceName": "OVO" }, { - "stringValue": "sigmoid", - "instanceName": "SIGMOID" + "stringValue": "ovr", + "instanceName": "OVR" } ] }, - "sklearn/sklearn.svm._classes/SVR/__init__/gamma": { - "target": "sklearn/sklearn.svm._classes/SVR/__init__/gamma", + "sklearn/sklearn.svm._classes/SVC/__init__/decision_function_shape": { + "target": "sklearn/sklearn.svm._classes/SVC/__init__/decision_function_shape", "authors": ["$autogen$"], "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'scale', 'auto'}.", - "enumName": "Gamma", + "comment": "I turned this into an enum because the type in the documentation contained {'ovo', 'ovr'}.", + "enumName": "DecisionFunctionShape", "pairs": [ { - "stringValue": "auto", - "instanceName": "AUTO" + "stringValue": "ovo", + "instanceName": "OVO" }, { - "stringValue": "scale", - "instanceName": "SCALE" + "stringValue": "ovr", + "instanceName": "OVR" } ] }, @@ -7273,27 +5681,6 @@ } ] }, - "sklearn/sklearn.tree._classes/DecisionTreeClassifier/__init__/max_features": { - "target": "sklearn/sklearn.tree._classes/DecisionTreeClassifier/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"auto\", \"sqrt\", \"log2\"}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, "sklearn/sklearn.tree._classes/DecisionTreeRegressor/__init__/criterion": { "target": "sklearn/sklearn.tree._classes/DecisionTreeRegressor/__init__/criterion", "authors": ["$autogen$"], @@ -7336,27 +5723,6 @@ } ] }, - "sklearn/sklearn.tree._classes/DecisionTreeRegressor/__init__/max_features": { - "target": "sklearn/sklearn.tree._classes/DecisionTreeRegressor/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"auto\", \"sqrt\", \"log2\"}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, "sklearn/sklearn.tree._classes/ExtraTreeClassifier/__init__/criterion": { "target": "sklearn/sklearn.tree._classes/ExtraTreeClassifier/__init__/criterion", "authors": ["$autogen$"], @@ -7395,27 +5761,6 @@ } ] }, - "sklearn/sklearn.tree._classes/ExtraTreeClassifier/__init__/max_features": { - "target": "sklearn/sklearn.tree._classes/ExtraTreeClassifier/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"auto\", \"sqrt\", \"log2\"}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, "sklearn/sklearn.tree._classes/ExtraTreeRegressor/__init__/criterion": { "target": "sklearn/sklearn.tree._classes/ExtraTreeRegressor/__init__/criterion", "authors": ["$autogen$"], @@ -7450,27 +5795,6 @@ } ] }, - "sklearn/sklearn.tree._classes/ExtraTreeRegressor/__init__/max_features": { - "target": "sklearn/sklearn.tree._classes/ExtraTreeRegressor/__init__/max_features", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"auto\", \"sqrt\", \"log2\"}.", - "enumName": "MaxFeatures", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "log2", - "instanceName": "LOG2" - }, - { - "stringValue": "sqrt", - "instanceName": "SQRT" - } - ] - }, "sklearn/sklearn.tree._export/export_graphviz/label": { "target": "sklearn/sklearn.tree._export/export_graphviz/label", "authors": ["$autogen$"], @@ -7730,23 +6054,6 @@ } ] }, - "sklearn/sklearn.utils.validation/check_array/order": { - "target": "sklearn/sklearn.utils.validation/check_array/order", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'F', 'C'}.", - "enumName": "Order", - "pairs": [ - { - "stringValue": "C", - "instanceName": "C" - }, - { - "stringValue": "F", - "instanceName": "F" - } - ] - }, "sklearn/sklearn.utils.validation/check_scalar/include_boundaries": { "target": "sklearn/sklearn.utils.validation/check_scalar/include_boundaries", "authors": ["$autogen$"], @@ -7771,31 +6078,6 @@ "instanceName": "RIGHT" } ] - }, - "sklearn/sklearn.utils/all_estimators/type_filter": { - "target": "sklearn/sklearn.utils/all_estimators/type_filter", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {\"classifier\", \"regressor\", \"cluster\", \"transformer\"}.", - "enumName": "TypeFilter", - "pairs": [ - { - "stringValue": "classifier", - "instanceName": "CLASSIFIER" - }, - { - "stringValue": "cluster", - "instanceName": "CLUSTER" - }, - { - "stringValue": "regressor", - "instanceName": "REGRESSOR" - }, - { - "stringValue": "transformer", - "instanceName": "TRANSFORMER" - } - ] } }, "removeAnnotations": { diff --git a/package-parser/package_parser/processing/annotations/_generate_enum_annotations.py b/package-parser/package_parser/processing/annotations/_generate_enum_annotations.py index bf2cda514..f7b72c574 100644 --- a/package-parser/package_parser/processing/annotations/_generate_enum_annotations.py +++ b/package-parser/package_parser/processing/annotations/_generate_enum_annotations.py @@ -6,7 +6,7 @@ EnumPair, ValueAnnotation, ) -from package_parser.processing.api.model import API, EnumType, UnionType +from package_parser.processing.api.model import API, EnumType from ._constants import autogen_author @@ -33,13 +33,7 @@ def _generate_enum_annotations(api: API, annotations: AnnotationStore) -> None: pairs = [] full_match = "" - if isinstance(parameter_type, UnionType): - for type_in_union in parameter_type.types: - if isinstance(type_in_union, EnumType): - pairs = _enum_pairs(type_in_union) - full_match = type_in_union.full_match - - elif isinstance(parameter_type, EnumType): + if isinstance(parameter_type, EnumType): pairs = _enum_pairs(parameter_type) full_match = parameter_type.full_match diff --git a/package-parser/tests/data/enumAnnotations/annotation_data.json b/package-parser/tests/data/enumAnnotations/annotation_data.json index 08b3a8da3..10015fcd3 100644 --- a/package-parser/tests/data/enumAnnotations/annotation_data.json +++ b/package-parser/tests/data/enumAnnotations/annotation_data.json @@ -20,27 +20,6 @@ } ] }, - "test/test/some_global_function/enum_parameter_with_union": { - "target": "test/test/some_global_function/enum_parameter_with_union", - "authors": ["$autogen$"], - "reviewers": [], - "comment": "I turned this into an enum because the type in the documentation contained {'auto', 'kd_tree', 'kd-means++'}.", - "enumName": "EnumParameterWithUnion", - "pairs": [ - { - "stringValue": "auto", - "instanceName": "AUTO" - }, - { - "stringValue": "kd-means++", - "instanceName": "KD_MEANS" - }, - { - "stringValue": "kd_tree", - "instanceName": "KD_TREE" - } - ] - }, "test/test/some_global_function/issue_760": { "target": "test/test/some_global_function/issue_760", "authors": ["$autogen$"],