Repository Analysis

PriorLabs/TabPFN

⚡ TabPFN: Foundation Model for Tabular Data ⚡

22.0 Moderate AI signal View on GitHub
22.0
Adjusted Score
22.0
Raw Score
100%
Time Factor
2026-05-29
Last Push
7,244
Stars
Python
Language
77,228
Lines of Code
270
Files
1307
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 31MEDIUM 134LOW 1142

Pattern Findings

1307 matches across 14 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers752 hits · 737 pts
SeverityFileLineSnippet
LOWtests/test_inference.py93 def reset_save_peak_mem_factor(self, factor: int | None = None) -> None:
LOWtests/test_inference.py136 def reset_save_peak_mem_factor(self, factor: int | None = None) -> None:
LOWtests/test_inference.py215 def reset_save_peak_mem_factor(self, factor: int | None = None) -> None:
LOWtests/test_inference.py219def test__cache_preprocessing__result_equal_in_serial_and_in_parallel() -> None:
LOWtests/test_inference.py272def test__cache_preprocessing__with_outlier_removal() -> None:
LOWtests/test_inference.py326def test__on_demand__result_equal_in_serial_and_in_parallel() -> None:
LOWtests/test_inference.py389def test__iter_outputs__task_type_forwarded(
LOWtests/test_inference.py433def _create_test_ensemble_configs(
LOWtests/test_inference.py482def test__explicit_kv_cache__produces_outputs() -> None:
LOWtests/test_inference.py531def test__explicit_kv_cache__keep_cache_on_device() -> None:
LOWtests/test_consistency.py40def _get_tiny_classification_data() -> tuple[np.ndarray, np.ndarray, np.ndarray]:
LOWtests/test_consistency.py52def _get_tiny_regression_data() -> tuple[np.ndarray, np.ndarray, np.ndarray]:
LOWtests/test_consistency.py64def _get_iris_multiclass_data() -> tuple[np.ndarray, np.ndarray, np.ndarray]:
LOWtests/test_consistency.py218def _get_current_platform_string() -> str:
LOWtests/test_consistency.py244def test__fit_predict__predictions_match_reference(
LOWtests/test_consistency.py284def _load_reference_predictions_or_fail(test_name: str) -> np.ndarray:
LOWtests/test_consistency.py294def save_reference_predictions() -> None:
LOWtests/test_utils.py21def test__infer_devices__auto__cuda_and_mps_not_available__selects_cpu(
LOWtests/test_utils.py30def test__infer_devices__auto__single_cuda_gpu_available__selects_it(
LOWtests/test_utils.py41def test__infer_devices__auto__multiple_cuda_gpus_available__selects_all(
LOWtests/test_utils.py57def test__infer_devices__auto__cuda_and_mps_available_but_excluded__selects_cpu(
LOWtests/test_utils.py68def test__infer_devices__auto__mps_available_but_torch_too_old__selects_cpu(
LOWtests/test_utils.py77def test__infer_devices__device_specified__selects_it(
LOWtests/test_utils.py88def test__infer_devices__multiple_devices_specified___selects_them(
LOWtests/test_utils.py101def test__infer_devices__device_specified_twice__raises() -> None:
LOWtests/test_utils.py109def test__infer_devices__mps_specified_but_torch_too_old__raises(
LOWtests/test_utils.py199def test_balance_probas_by_class_counts():
LOWtests/test_utils.py215def test__translate_probs_across_borders__matches_unchunked(batch: int) -> None:
LOWtests/test_utils.py232def test__translate_probs_across_borders__forces_chunking(
LOWtests/test_estimators.py30def test__to__before_fit__does_not_crash(
LOWtests/test_estimators.py46def test__to__between_fit_and_predict__does_not_crash(
LOWtests/test_estimators.py62def test__to__between_fits__outputs_equal(
LOWtests/test_estimators.py112def test__to__after_fit__no_tensors_left_on_old_device(
LOWtests/test_estimators.py135def test__to__after_fit_and_predict__no_tensors_left_on_old_device(
LOWtests/test_notebook_installs.py96def test_notebook_resolves_latest_pinned_packages(
LOWtests/test_save_load_fitted_model.py29def _make_classification_data_with_categoricals() -> tuple[np.ndarray, np.ndarray]:
LOWtests/test_save_load_fitted_model.py56def test__save_and_load_twice__predictions_equal_to_before_save(
LOWtests/test_save_load_fitted_model.py101def test_saving_unfitted_model_raises_error(tmp_path: Path) -> None:
LOWtests/test_save_load_fitted_model.py108def test__load_regressor_state_in_classifier__raises_error(tmp_path: Path) -> None:
LOWtests/test_save_load_fitted_model.py121def test__load_classifier_state_in_regressor__raises_error(tmp_path: Path) -> None:
LOWtests/test_save_load_fitted_model.py134def _init_and_save_unique_checkpoint(
LOWtests/test_save_load_fitted_model.py149def test_saving_and_loading_model_with_weights(tmp_path: Path) -> None:
LOWtests/test_save_load_fitted_model.py188def test_saving_and_loading_multiple_models_with_weights(
LOWtests/test_save_load_fitted_model.py235def test_saving_and_loading_with_tuning_config(
LOWtests/test_inference_config.py22def test__save_and_load__loaded_value_equal_to_saved() -> None:
LOWtests/test_inference_config.py35def test__override_with_user_input__dict_of_overrides__sets_values_correctly() -> None:
LOWtests/test_inference_config.py58def test__override_with_user_input__config_override__replaces_entire_config() -> None:
LOWtests/test_inference_config.py126def test__classifier_get_inference_config__before_fit__returns_config() -> None:
LOWtests/test_inference_config.py135def test__classifier_get_inference_config__returns_deepcopy() -> None:
LOWtests/test_inference_config.py144def test__classifier_get_inference_config__with_override__applies_override() -> None:
LOWtests/test_inference_config.py156def test__regressor_get_inference_config__before_fit__returns_config() -> None:
LOWtests/test_inference_config.py165def test__regressor_get_inference_config__returns_deepcopy() -> None:
LOWtests/test_inference_config.py174def test__regressor_get_inference_config__with_override__applies_override() -> None:
LOWtests/test_parallel_execute.py14def test__parallel_execute__single_device__executes_in_current_thread() -> None:
LOWtests/test_parallel_execute.py26def test__parallel_execute__single_device__results_in_same_order_as_functions() -> None:
LOWtests/test_parallel_execute.py41def test__parallel_execute__multiple_devices__executes_in_worker_threads() -> None:
LOWtests/test_parallel_execute.py55def test__parallel_execute__multiple_devices__results_in_same_order_as_functions() -> (
LOWtests/test_finetuning_regressor.py50def create_mock_architecture_forward_regression() -> Callable[..., torch.Tensor]:
LOWtests/test_finetuning_regressor.py103def synthetic_regression_data() -> tuple[np.ndarray, np.ndarray]:
LOWtests/test_finetuning_regressor.py135def variable_synthetic_regression_dataset_collection() -> list[
692 more matches not shown…
Decorative Section Separators98 hits · 336 pts
SeverityFileLineSnippet
MEDIUMtests/test_finetuning_logging.py15# ---------------------------------------------------------------------------
MEDIUMtests/test_finetuning_logging.py17# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py56# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py58# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py108# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py110# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py131# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py133# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py591# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py593# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py26# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py28# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py235# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py237# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py358# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py360# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py405# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_auth.py407# ---------------------------------------------------------------------------
MEDIUMtests/test_finetuning_classifier.py322# =============================================================================
MEDIUMtests/test_finetuning_classifier.py324# =============================================================================
MEDIUMtests/test_finetuning_classifier.py397# =============================================================================
MEDIUMtests/test_finetuning_classifier.py399# =============================================================================
MEDIUMtests/test_finetuning_classifier.py747# =============================================================================
MEDIUMtests/test_finetuning_classifier.py749# =============================================================================
MEDIUMtests/test_finetuning_classifier.py95# =============================================================================
MEDIUMtests/test_finetuning_classifier.py97# =============================================================================
MEDIUM…ch_preprocessing/test_gpu_preprocessing_consistency.py39# ---------------------------------------------------------------------------
MEDIUM…ch_preprocessing/test_gpu_preprocessing_consistency.py41# ---------------------------------------------------------------------------
MEDIUM…ch_preprocessing/test_gpu_preprocessing_consistency.py199# ---------------------------------------------------------------------------
MEDIUM…ch_preprocessing/test_gpu_preprocessing_consistency.py201# ---------------------------------------------------------------------------
MEDIUM…ch_preprocessing/test_gpu_preprocessing_consistency.py226# ---------------------------------------------------------------------------
MEDIUM…ch_preprocessing/test_gpu_preprocessing_consistency.py228# ---------------------------------------------------------------------------
MEDIUMtests/test_architectures/test_mlx_backend.py175# ---------------------------------------------------------------------------
MEDIUMtests/test_architectures/test_mlx_backend.py177# ---------------------------------------------------------------------------
MEDIUMtests/test_architectures/test_mlx_backend.py248# ---------------------------------------------------------------------------
MEDIUMtests/test_architectures/test_mlx_backend.py250# ---------------------------------------------------------------------------
MEDIUMtests/test_architectures/test_attention_backends.py61# ---------------------------------------------------------------------
MEDIUMtests/test_architectures/test_attention_backends.py63# ---------------------------------------------------------------------
MEDIUMtests/test_architectures/test_attention_backends.py128# ---------------------------------------------------------------------
MEDIUMtests/test_architectures/test_attention_backends.py130# ---------------------------------------------------------------------
MEDIUMexamples/finetune_classifier.py39# =============================================================================
MEDIUMexamples/finetune_classifier.py45# =============================================================================
MEDIUMexamples/sagemaker.py45# ---------------------------------------------------------------------------
MEDIUMexamples/sagemaker.py47# ---------------------------------------------------------------------------
MEDIUMexamples/sagemaker.py57# ---------------------------------------------------------------------------
MEDIUMexamples/sagemaker.py59# ---------------------------------------------------------------------------
MEDIUMexamples/sagemaker.py74# ---------------------------------------------------------------------------
MEDIUMexamples/sagemaker.py76# ---------------------------------------------------------------------------
MEDIUMexamples/sagemaker.py353# ---------------------------------------------------------------------------
MEDIUMexamples/sagemaker.py355# ---------------------------------------------------------------------------
MEDIUMexamples/finetune_regressor.py36# =============================================================================
MEDIUMexamples/finetune_regressor.py42# =============================================================================
MEDIUM.github/workflows/ci.yml138 # -------------------------------------------------------------------
MEDIUM.github/workflows/ci.yml140 # -------------------------------------------------------------------
MEDIUM.github/workflows/ci.yml184 # -------------------------------------------------------------------
MEDIUM.github/workflows/ci.yml186 # -------------------------------------------------------------------
MEDIUM.github/workflows/ci.yml253 # -------------------------------------------------------------------
MEDIUM.github/workflows/ci.yml257 # -------------------------------------------------------------------
MEDIUMsrc/tabpfn/browser_auth.py142# ---------------------------------------------------------------------------
MEDIUMsrc/tabpfn/browser_auth.py144# ---------------------------------------------------------------------------
38 more matches not shown…
Unused Imports337 hits · 310 pts
SeverityFileLineSnippet
LOWtests/test_debug_versions.py3
LOWtests/test_inference.py5
LOWtests/test_consistency.py16
LOWtests/test_utils.py3
LOWtests/test_estimators.py5
LOWtests/conftest.py10
LOWtests/test_notebook_installs.py16
LOWtests/quick_test.py9
LOWtests/test_save_load_fitted_model.py5
LOWtests/test_inference_config.py5
LOWtests/test_parallel_execute.py5
LOWtests/test_finetuning_regressor.py13
LOWtests/test_model_move_backwards_compatibility.py3
LOWtests/test_finetuning_logging.py5
LOWtests/test_ft_utils.py3
LOWtests/test_thinking_tokens.py3
LOWtests/utils.py3
LOWtests/test_config.py3
LOWtests/test_model_loading.py3
LOWtests/test_browser_auth.py5
LOWtests/test_regressor_interface.py3
LOWtests/test_telemetry_disabled.py5
LOWtests/test_download_fallbacks.py3
LOWtests/test_inference_tuning.py3
LOWtests/test_transformer.py3
LOWtests/test_finetuning_classifier.py12
LOWtests/test_checkpoint.py3
LOWtests/test_settings.py3
LOWtests/test_classifier_interface.py3
LOW…st_preprocessing/test_adaptive_quantile_transformer.py3
LOW…preprocessing/test_encode_categorical_features_step.py5
LOW…ocessing/test_nan_handling_polynomial_features_step.py5
LOWtests/test_preprocessing/test_modality_detection.py5
LOWtests/test_preprocessing/test_power_transformer.py3
LOWtests/test_preprocessing/test_data_cleaning.py5
LOW…reprocessing/test_reshape_feature_distribution_step.py5
LOWtests/test_preprocessing/test_add_svd_features_step.py5
LOWtests/test_preprocessing/test_kdi_transformer.py3
LOWtests/test_preprocessing/test_preprocessing_steps.py3
LOWtests/test_preprocessing/test_label_encoder.py5
LOW…st_preprocessing/test_add_fingerprint_features_step.py5
LOW…s/test_preprocessing/test_differentiable_znorm_step.py3
LOWtests/test_preprocessing/test_datamodel.py5
LOWtests/test_preprocessing/test_ensemble.py3
LOW…st_preprocessing/test_remove_constant_features_step.py5
LOWtests/test_preprocessing/test_pipeline_consistency.py16
LOWtests/test_encoders/test_encoders.py5
LOWtests/test_encoders/test_projections.py5
LOWtests/test_encoders/test_ops.py5
LOWtests/test_model/test_seperate_train_inference.py3
LOWtests/test_model/test_bar_distribution.py3
LOWtests/test_model/test_attention.py3
LOW…torch_preprocessing/test_torch_quantile_transformer.py5
LOW…orch_preprocessing/test_torch_shuffle_features_step.py5
LOW…ts/test_torch_preprocessing/test_pipeline_interface.py5
LOW…t_torch_preprocessing/test_torch_soft_clip_outliers.py5
LOW…est_torch_preprocessing/test_torch_squashing_scaler.py5
LOW…ch_preprocessing/test_gpu_preprocessing_consistency.py11
LOWtests/test_torch_preprocessing/test_torch_svd.py5
LOW…test_torch_preprocessing/test_torch_standard_scaler.py5
277 more matches not shown…
Cross-File Repetition18 hits · 90 pts
SeverityFileLineSnippet
HIGHtests/test_preprocessing/test_add_svd_features_step.py0test that the step returns added columns when used in a pipeline.
HIGHtests/test_preprocessing/test_add_svd_features_step.py0test that the step returns added columns when used in a pipeline.
HIGH…st_preprocessing/test_add_fingerprint_features_step.py0test that the step returns added columns when used in a pipeline.
HIGH…torch_preprocessing/test_torch_quantile_transformer.py0test with 3d tensor (t, b, h) shape commonly used in tabpfn.
HIGH…t_torch_preprocessing/test_torch_soft_clip_outliers.py0test with 3d tensor (t, b, h) shape commonly used in tabpfn.
HIGH…test_torch_preprocessing/test_torch_standard_scaler.py0test with 3d tensor (t, b, h) shape commonly used in tabpfn.
HIGHtests/test_architectures/test_tabpfn_v2_6.py0construct v2.5 and base such that they have the same outputs.
HIGHtests/test_architectures/test_tabpfn_v3.py0construct v2.5 and base such that they have the same outputs.
HIGHtests/test_architectures/test_tabpfn_v2_5.py0construct v2.5 and base such that they have the same outputs.
HIGHsrc/tabpfn/architectures/tabpfn_v2_6.py0if > 1, the features will be grouped into groups of this size and the attention is across groups.
HIGHsrc/tabpfn/architectures/tabpfn_v2_5.py0if > 1, the features will be grouped into groups of this size and the attention is across groups.
HIGHsrc/tabpfn/architectures/base/config.py0if > 1, the features will be grouped into groups of this size and the attention is across groups.
HIGHsrc/tabpfn/architectures/tabpfn_v2_6.py0perform a forward pass. see modelinterface.forward() for the full docstring.
HIGHsrc/tabpfn/architectures/tabpfn_v2_5.py0perform a forward pass. see modelinterface.forward() for the full docstring.
HIGHsrc/tabpfn/architectures/base/transformer.py0perform a forward pass. see modelinterface.forward() for the full docstring.
HIGHsrc/tabpfn/finetuning/finetuned_regressor.py0fine-tune the tabpfn model on the provided training data. args: x: the training input samples of shape (n_samples, n_fea
HIGHsrc/tabpfn/finetuning/finetuned_base.py0fine-tune the tabpfn model on the provided training data. args: x: the training input samples of shape (n_samples, n_fea
HIGHsrc/tabpfn/finetuning/finetuned_classifier.py0fine-tune the tabpfn model on the provided training data. args: x: the training input samples of shape (n_samples, n_fea
Self-Referential Comments28 hits · 87 pts
SeverityFileLineSnippet
MEDIUMtests/test_model_loading.py512 # Create a fake checkpoint to simulate a successful download
MEDIUMtests/test_regressor_interface.py457 # Create a simple preprocessing pipeline
MEDIUMtests/test_regressor_interface.py682 # Create a CPU model
MEDIUMtests/test_regressor_interface.py723 # Create a CPU model
MEDIUMtests/test_regressor_interface.py771 # Create a TabPFNRegressor with fixed random state for reproducibility
MEDIUMtests/test_regressor_interface.py788 # Create a new dataset with added constant features
MEDIUMtests/test_finetuning_classifier.py1026 # Initialize two classifiers with the necessary modes
MEDIUMtests/test_finetuning_classifier.py1194 # Create a larger dataset where columns have distinct mean values
MEDIUMtests/test_classifier_interface.py932 # Create a TabPFNClassifier with fixed random state for reproducibility
MEDIUMtests/test_classifier_interface.py940 # Create a new dataset with added constant features
MEDIUMtests/test_classifier_interface.py505 # Create a subset of X to match the length of y_imbalanced
MEDIUMtests/test_classifier_interface.py697 # Create an IMBALANCED dataset
MEDIUMtests/test_classifier_interface.py739 # Create a simple preprocessing pipeline
MEDIUMtests/test_classifier_interface.py976 # Create a DataFrame with text and NA values
MEDIUMtests/test_preprocessing/test_add_svd_features_step.py239 # Create an invalid enum value by bypassing the enum
MEDIUMexamples/tabpfn_with_tuning.py38# Initialize a classifier with tuning and fit
MEDIUMexamples/tabpfn_with_tuning.py46# Initialize a classifier with tuning and fit
MEDIUMexamples/tabpfn_for_binary_classification.py20# Initialize a classifier
MEDIUMexamples/tabpfn_for_multiclass_classification.py23# Initialize a classifier
MEDIUMsrc/tabpfn/model_loading.py784 # Create a validated copy of logged params; avoid passing in arbitrary params
MEDIUMsrc/tabpfn/regressor.py1053 # Create a dictionary of outputs with proper typing via TypedDict
MEDIUMsrc/tabpfn/misc/_sklearn_compat.py31# The following code does not depend on the sklearn version
MEDIUMsrc/tabpfn/architectures/tabpfn_v2_6.py986 # The following class imputation is performed for backwards compatibility.
MEDIUMsrc/tabpfn/architectures/tabpfn_v2_5.py1094 # The following class imputation is performed for backwards compatibility.
MEDIUMsrc/tabpfn/architectures/encoders/steps/_ops.py282 # Create a mask to zero out the padding positions.
MEDIUM…tabpfn/preprocessing/torch/torch_soft_clip_outliers.py61 # Create a clean copy with outliers masked as NaN
MEDIUM…reprocessing/steps/encode_categorical_features_step.py153 # Create a column transformer
MEDIUM…reprocessing/steps/encode_categorical_features_step.py202 # Create a column transformer
Docstring Block Structure9 hits · 45 pts
SeverityFileLineSnippet
HIGHexamples/sagemaker.py87Serialize TabPFN input data and parameters into a JSON request body. This utility converts NumPy arrays and configu
HIGHexamples/sagemaker.py173Invoke the TabPFN SageMaker endpoint with tabular data. This helper prepares the payload for a TabPFN 2.5 model, se
HIGHsrc/tabpfn/utils.py237Infer whether fp16 inference should be enabled. Args: devices: The devices to validate against. ena
HIGHsrc/tabpfn/architectures/tabpfn_v2_6.py828Parse the config dict into a TabPFNV2Config, return unused keys. Args: config: Config dict to parse. This f
HIGHsrc/tabpfn/architectures/interface.py117Parses the given config dict into ArchitectureConfig or a subclass. This config will then be passed to get_arch
HIGHsrc/tabpfn/architectures/tabpfn_v2_5.py837Parse the config dict into a TabPFNV2Config, return unused keys. Args: config: Config dict to parse. This f
HIGHsrc/tabpfn/architectures/base/__init__.py35Parse the config dict into a ModelConfig, a subclass of ArchitectureConfig. This method implements the interface de
HIGHsrc/tabpfn/finetuning/data_util.py340Retrieves, splits, and preprocesses the dataset config at the index. Performs train/test splitting and applies
HIGHsrc/tabpfn/finetuning/train_util.py240Create and initialize AdamW optimizer, optionally loading from checkpoint. Args: model_parameters: Iterator
Deep Nesting26 hits · 24 pts
SeverityFileLineSnippet
LOW…reprocessing/test_reshape_feature_distribution_step.py331
LOWtests/test_preprocessing/test_ensemble.py777
LOWtests/test_encoders/test_encoders.py166
LOWsrc/tabpfn/classifier.py505
LOWsrc/tabpfn/classifier.py1407
LOWsrc/tabpfn/model_loading.py199
LOWsrc/tabpfn/model_loading.py226
LOWsrc/tabpfn/model_loading.py319
LOWsrc/tabpfn/model_loading.py608
LOWsrc/tabpfn/utils.py280
LOWsrc/tabpfn/regressor.py493
LOWsrc/tabpfn/regressor.py1085
LOWsrc/tabpfn/misc/debug_versions.py188
LOWsrc/tabpfn/misc/debug_versions.py269
LOWsrc/tabpfn/misc/debug_versions.py347
LOWsrc/tabpfn/architectures/interface.py43
LOWsrc/tabpfn/architectures/tabpfn_v3.py1643
LOWsrc/tabpfn/architectures/tabpfn_v3.py2017
LOWsrc/tabpfn/architectures/base/transformer.py755
LOWsrc/tabpfn/architectures/base/transformer.py602
LOWsrc/tabpfn/finetuning/finetuned_base.py543
LOWsrc/tabpfn/preprocessing/clean.py68
LOW…eprocessing/steps/reshape_feature_distribution_step.py107
LOW…eprocessing/steps/reshape_feature_distribution_step.py185
LOW…reprocessing/steps/encode_categorical_features_step.py56
LOW…n/preprocessing/steps/add_fingerprint_features_step.py68
Magic Placeholder Names4 hits · 20 pts
SeverityFileLineSnippet
HIGHsrc/tabpfn/browser_auth.py629 ' 4. Set the environment variable: export TABPFN_TOKEN="<your-api-key>"\n'
HIGHsrc/tabpfn/browser_auth.py631 ' import os; os.environ["TABPFN_TOKEN"] = "<your-api-key>"'
HIGHsrc/tabpfn/errors.py49 ' export TABPFN_TOKEN="<your-api-key>"\n'
HIGHsrc/tabpfn/errors.py51 ' import os; os.environ["TABPFN_TOKEN"] = "<your-api-key>"'
Excessive Try-Catch Wrapping15 hits · 16 pts
SeverityFileLineSnippet
LOWtests/test_preprocessing/test_pipeline_consistency.py434 except Exception as e:
MEDIUMexamples/sagemaker.py348 print(f"Error parsing JSON response: {e}")
LOWsrc/tabpfn/classifier.py752 except Exception as e: # noqa: BLE001
LOWsrc/tabpfn/browser_auth.py137 except Exception:
LOWsrc/tabpfn/browser_auth.py207 except Exception:
LOWsrc/tabpfn/browser_auth.py166 except Exception as exc:
LOWsrc/tabpfn/browser_auth.py331 except Exception: # noqa: BLE001
LOWsrc/tabpfn/browser_auth.py507 except Exception:
LOWsrc/tabpfn/model_loading.py302 except Exception as e: # noqa: BLE001
LOWsrc/tabpfn/model_loading.py362 except Exception: # noqa: BLE001
LOWsrc/tabpfn/model_loading.py367 except Exception as e: # noqa: BLE001
LOWsrc/tabpfn/model_loading.py514 except Exception as e: # noqa: BLE001
LOWsrc/tabpfn/model_loading.py525 except Exception as e: # noqa: BLE001
LOWsrc/tabpfn/model_loading.py553 except Exception as e: # noqa: BLE001
LOWsrc/tabpfn/preprocessing/steps/kdi_transformer.py156 except Exception: # noqa: BLE001
AI Slop Vocabulary8 hits · 16 pts
SeverityFileLineSnippet
MEDIUMpyproject.toml152 # "DTZ", # One day I should know how to utilize timezones and dates...
MEDIUMtests/test_finetuning_classifier.py1002 n_total = 50 # Increased slightly for more robust testing
MEDIUM…t_torch_preprocessing/test_torch_soft_clip_outliers.py58 """Test that two-pass approach produces more robust bounds."""
MEDIUMsrc/tabpfn/inference_tuning.py262 """Selects the robust optimal threshold for the given metric.
LOWsrc/tabpfn/parallel_execute.py85 # If we only have one device then just use the current thread to avoid overhead.
MEDIUMsrc/tabpfn/preprocessing/configs.py71 "robust", # a standard sklearn robust scaler
MEDIUMsrc/tabpfn/preprocessing/steps/preprocessing_helpers.py116 # TODO: Could utilize the categorical dtype values directly instead of "auto"
MEDIUM…fn/preprocessing/steps/squashing_scaler_transformer.py88 r"""Perform robust centering and scaling followed by soft clipping.
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippet
LOWsrc/tabpfn/model_loading.py309 # Check if this is an authentication/gating error
LOWsrc/tabpfn/model_loading.py798 # Check if the annotation is a string and the fit_mode is in it.
LOWsrc/tabpfn/utils.py212 # Check if the function is available in torch
LOW…/tabpfn/architectures/base/attention/full_attention.py607 # Check if we should use PyTorch 2.0's GQA support
LOWsrc/tabpfn/preprocessing/steps/preprocessing_helpers.py56 # Check if there is a single transformer, of subtype OneToOneFeatureMixin
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippet
LOWexamples/finetune_classifier.py41# For details and more options see FinetunedTabPFNClassifier
LOWexamples/sagemaker.py61#
LOWsrc/tabpfn/misc/_sklearn_compat.py1001
LOW…coders/steps/remove_duplicate_features_encoder_step.py61 return state
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippet
LOWtests/test_parallel_execute.py15 def test_function(device: torch.device) -> int: # noqa: ARG001
LOWtests/test_parallel_execute.py42 def test_function(device: torch.device) -> int: # noqa: ARG001
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOWtests/test_finetuning_classifier.py1235 # Step 3: Validate that columns are in the same order across all batches.