Low-code framework for building custom LLMs, neural networks, and other AI models
3290 matches across 16 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | ludwig/experiment_utils.py | 14 | # ============================================================================== |
| MEDIUM | ludwig/api_types.py | 14 | # ============================================================================== |
| MEDIUM | ludwig/collect.py | 269 | # ---------------- |
| MEDIUM | ludwig/collect.py | 271 | # ---------------- |
| MEDIUM | ludwig/collect.py | 275 | # ------------------------- |
| MEDIUM | ludwig/collect.py | 277 | # ------------------------- |
| MEDIUM | ludwig/collect.py | 282 | # ------------------ |
| MEDIUM | ludwig/collect.py | 284 | # ------------------ |
| MEDIUM | ludwig/collect.py | 287 | # ------------------ |
| MEDIUM | ludwig/collect.py | 289 | # ------------------ |
| MEDIUM | ludwig/collect.py | 351 | # ---------------- |
| MEDIUM | ludwig/collect.py | 353 | # ---------------- |
| MEDIUM | ludwig/collect.py | 357 | # ------------------------- |
| MEDIUM | ludwig/collect.py | 359 | # ------------------------- |
| MEDIUM | ludwig/collect.py | 364 | # ------------------ |
| MEDIUM | ludwig/collect.py | 366 | # ------------------ |
| MEDIUM | ludwig/collect.py | 407 | # ---------------- |
| MEDIUM | ludwig/collect.py | 409 | # ---------------- |
| MEDIUM | ludwig/collect.py | 415 | # ------------------ |
| MEDIUM | ludwig/collect.py | 417 | # ------------------ |
| MEDIUM | ludwig/collect.py | 15 | # ============================================================================== |
| MEDIUM | ludwig/collect.py | 235 | # --------------- |
| MEDIUM | ludwig/collect.py | 237 | # --------------- |
| MEDIUM | ludwig/contrib.py | 14 | # ============================================================================== |
| MEDIUM | ludwig/forecast.py | 68 | # --------------- |
| MEDIUM | ludwig/forecast.py | 70 | # --------------- |
| MEDIUM | ludwig/forecast.py | 96 | # ---------------- |
| MEDIUM | ludwig/forecast.py | 98 | # ---------------- |
| MEDIUM | ludwig/forecast.py | 101 | # ------------------------- |
| MEDIUM | ludwig/forecast.py | 103 | # ------------------------- |
| MEDIUM | ludwig/hyperopt_cli.py | 15 | # ============================================================================== |
| MEDIUM | ludwig/hyperopt_cli.py | 150 | # ------------------- |
| MEDIUM | ludwig/hyperopt_cli.py | 152 | # ------------------- |
| MEDIUM | ludwig/hyperopt_cli.py | 161 | # ---------------------------- |
| MEDIUM | ludwig/hyperopt_cli.py | 163 | # ---------------------------- |
| MEDIUM | ludwig/hyperopt_cli.py | 173 | # --------------- |
| MEDIUM | ludwig/hyperopt_cli.py | 175 | # --------------- |
| MEDIUM | ludwig/hyperopt_cli.py | 226 | # ---------------- |
| MEDIUM | ludwig/hyperopt_cli.py | 228 | # ---------------- |
| MEDIUM | ludwig/hyperopt_cli.py | 300 | # ------------------ |
| MEDIUM | ludwig/hyperopt_cli.py | 302 | # ------------------ |
| MEDIUM | ludwig/error.py | 14 | # ============================================================================== |
| MEDIUM | ludwig/upload.py | 92 | # --------------- |
| MEDIUM | ludwig/upload.py | 94 | # --------------- |
| MEDIUM | ludwig/upload.py | 111 | # --------------- |
| MEDIUM | ludwig/upload.py | 113 | # --------------- |
| MEDIUM | ludwig/preprocess.py | 15 | # ============================================================================== |
| MEDIUM | ludwig/preprocess.py | 96 | # --------------- |
| MEDIUM | ludwig/preprocess.py | 98 | # --------------- |
| MEDIUM | ludwig/preprocess.py | 141 | # ---------------- |
| MEDIUM | ludwig/preprocess.py | 143 | # ---------------- |
| MEDIUM | ludwig/preprocess.py | 166 | # ------------------ |
| MEDIUM | ludwig/preprocess.py | 168 | # ------------------ |
| MEDIUM | ludwig/globals.py | 15 | # ============================================================================== |
| MEDIUM | ludwig/constants.py | 15 | # ============================================================================== |
| MEDIUM | ludwig/predict.py | 15 | # ============================================================================== |
| MEDIUM | ludwig/predict.py | 110 | # --------------- |
| MEDIUM | ludwig/predict.py | 112 | # --------------- |
| MEDIUM | ludwig/predict.py | 141 | # ---------------- |
| MEDIUM | ludwig/predict.py | 143 | # ---------------- |
| 698 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ludwig/experiment_utils.py | 61 | def get_experiment_description( |
| LOW | ludwig/contrib.py | 32 | def add_contrib_callback_args(parser: argparse.ArgumentParser): |
| LOW | ludwig/api.py | 224 | def _initialize_llm_for_zero_shot(self, random_seed: int = default_random_seed): |
| LOW | ludwig/api.py | 710 | def _tune_batch_size_and_grad_accum(self, trainer, dataset, random_seed: int = default_random_seed): |
| LOW | ludwig/api.py | 768 | def save_dequantized_base_model(self, save_path: str) -> None: |
| LOW | ludwig/api.py | 867 | def _generate_streaming_outputs( |
| LOW | ludwig/api.py | 903 | def _generate_non_streaming_outputs( |
| LOW | ludwig/api.py | 1772 | def _preprocess_for_prediction( |
| LOW | ludwig/serve_ray_serve.py | 43 | def make_ludwig_deployment_class(num_replicas: int = 1, ray_actor_options: dict | None = None): |
| LOW | ludwig/config_generation.py | 22 | def get_ludwig_schema_context() -> str: |
| LOW | ludwig/config_sampling/explore_schema.py | 173 | def generate_possible_configs(config_options: dict[str, Any]): |
| LOW | ludwig/config_sampling/explore_schema.py | 260 | def combine_configs_for_comparator_combiner( |
| LOW | ludwig/config_sampling/explore_schema.py | 291 | def combine_configs_for_sequence_combiner( |
| LOW | ludwig/explain/util.py | 53 | def get_absolute_module_key_from_submodule(module: torch.nn.Module, submodule: torch.nn.Module): |
| LOW | ludwig/explain/captum.py | 59 | def retry_with_halved_batch_size(run_config: ExplanationRunConfig): |
| LOW | ludwig/explain/captum.py | 69 | def retry_with_halved_batch_size_fn(fn): |
| LOW | ludwig/explain/captum.py | 70 | def retry_with_halved_batch_size_wrapper(*args, **kwargs): |
| LOW | ludwig/explain/captum_ray.py | 177 | def get_total_attribution_task( |
| LOW | ludwig/config_validation/checks.py | 178 | def check_class_balance_preprocessing(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 188 | def check_sampling_exclusivity(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 197 | def check_validation_metric_exists(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 53 | def get_config_check_registry(): |
| LOW | ludwig/config_validation/checks.py | 75 | def check_feature_names_unique(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 88 | def check_tied_features_valid(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 114 | def check_ray_backend_in_memory_preprocessing(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 136 | def check_sequence_concat_combiner_requirements(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 154 | def check_comparator_combiner_requirements(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 224 | def check_hf_tokenizer_requirements(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 237 | def check_hf_encoder_requirements(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 250 | def check_stacked_transformer_requirements(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 274 | def check_hyperopt_search_algorithm_dependencies_installed(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 286 | def check_hyperopt_scheduler_dependencies_installed(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 298 | def check_tagger_decoder_requirements(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 329 | def check_hyperopt_parameter_dicts(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 372 | def check_concat_combiner_requirements(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 403 | def check_hyperopt_nested_parameter_dicts(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 439 | def check_llm_exactly_one_input_text_feature(config: "ModelConfig"): |
| LOW | ludwig/config_validation/checks.py | 450 | def check_llm_finetuning_output_feature_config(config: "ModelConfig"): |
| LOW | ludwig/config_validation/checks.py | 466 | def check_llm_finetuning_trainer_config(config: "ModelConfig"): |
| LOW | ludwig/config_validation/checks.py | 484 | def check_llm_finetuning_backend_config(config: "ModelConfig"): |
| LOW | ludwig/config_validation/checks.py | 511 | def check_llm_finetuning_adalora_config(config: "ModelConfig"): |
| LOW | ludwig/config_validation/checks.py | 539 | def check_llm_finetuning_adaption_prompt_parameters(config: "ModelConfig"): |
| LOW | ludwig/config_validation/checks.py | 571 | def check_llm_quantization_backend_incompatibility(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 604 | def check_llm_text_encoder_is_not_used_with_ecd(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 633 | def check_qlora_merge_and_unload_compatibility(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 658 | def check_prompt_requirements(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 720 | def check_sample_ratio_and_size_compatible(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/checks.py | 728 | def check_grpo_requires_text_output(config: "ModelConfig") -> None: |
| LOW | ludwig/config_validation/preprocessing.py | 1 | def check_global_max_sequence_length_fits_prompt_template(metadata, global_preprocessing_parameters): |
| LOW | ludwig/distributed/__init__.py | 40 | def get_current_dist_strategy() -> DistributedStrategy: |
| LOW | ludwig/distributed/__init__.py | 53 | def get_default_strategy_name() -> str: |
| LOW | ludwig/distributed/accelerate.py | 211 | def allow_gradient_accumulation(self) -> bool: |
| LOW | ludwig/distributed/accelerate.py | 234 | def extract_model_for_serialization(cls, model): |
| LOW | ludwig/distributed/accelerate.py | 244 | def replace_model_from_serialization(cls, state): |
| LOW | ludwig/distributed/base.py | 162 | def allow_gradient_accumulation(self) -> bool: |
| LOW | ludwig/distributed/base.py | 191 | def extract_model_for_serialization(cls, model: nn.Module) -> nn.Module | tuple[nn.Module, list[dict]]: |
| LOW | ludwig/distributed/base.py | 195 | def replace_model_from_serialization(cls, state: nn.Module | tuple[nn.Module, list[dict]]) -> nn.Module: |
| LOW | ludwig/callbacks/__init__.py | 89 | def on_hyperopt_preprocessing_start(self, experiment_name: str, **kwargs): |
| LOW | ludwig/callbacks/__init__.py | 96 | def on_hyperopt_preprocessing_end(self, experiment_name: str, **kwargs): |
| LOW | ludwig/callbacks/__init__.py | 202 | def on_trainer_train_teardown(self, trainer, progress_tracker, save_path: str, is_coordinator: bool, **kwargs): |
| 1433 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | ludwig/contribs/comet.py | 0 | class that defines the methods necessary to hook into process. |
| HIGH | ludwig/contribs/wandb.py | 0 | class that defines the methods necessary to hook into process. |
| HIGH | ludwig/contribs/aim.py | 0 | class that defines the methods necessary to hook into process. |
| HIGH | ludwig/benchmarking/profiler_callbacks.py | 0 | class that defines the methods necessary to hook into process. |
| HIGH | tests/integration_tests/test_experiment.py | 0 | class that defines the methods necessary to hook into process. |
| HIGH | tests/integration_tests/test_experiment.py | 0 | class that defines the methods necessary to hook into process. |
| HIGH | ludwig/utils/metric_utils.py | 0 | returns a dict of output_feature_name -> list of metric names. |
| HIGH | ludwig/utils/metric_utils.py | 0 | returns a dict of output_feature_name -> list of metric names. |
| HIGH | ludwig/utils/metric_utils.py | 0 | returns a dict of output_feature_name -> list of metric names. |
| HIGH | ludwig/models/llm.py | 0 | returns init arguments for constructing this model. |
| HIGH | ludwig/models/ecd.py | 0 | returns init arguments for constructing this model. |
| HIGH | ludwig/models/base.py | 0 | returns init arguments for constructing this model. |
| HIGH | ludwig/schema/split.py | 0 | this dataclass generates a schema for the fixed splitting config. |
| HIGH | ludwig/schema/split.py | 0 | this dataclass generates a schema for the fixed splitting config. |
| HIGH | ludwig/schema/split.py | 0 | this dataclass generates a schema for the fixed splitting config. |
| HIGH | ludwig/modules/loss_modules.py | 0 | params: class_weights: list or 1d tensor of length equal to number of classes. |
| HIGH | ludwig/modules/loss_modules.py | 0 | params: class_weights: list or 1d tensor of length equal to number of classes. |
| HIGH | ludwig/modules/loss_modules.py | 0 | params: class_weights: list or 1d tensor of length equal to number of classes. |
| HIGH | ludwig/modules/loss_modules.py | 0 | params: preds: float tensor [b, c] of class logits. target: long tensor [b] of integer class indices. |
| HIGH | ludwig/modules/loss_modules.py | 0 | params: preds: float tensor [b, c] of class logits. target: long tensor [b] of integer class indices. |
| HIGH | ludwig/modules/loss_modules.py | 0 | params: preds: float tensor [b, c] of class logits. target: long tensor [b] of integer class indices. |
| HIGH | ludwig/modules/convolutional_modules.py | 0 | returns the size of the input tensor without the batch dimension. |
| HIGH | ludwig/modules/convolutional_modules.py | 0 | returns the size of the input tensor without the batch dimension. |
| HIGH | ludwig/modules/convolutional_modules.py | 0 | returns the size of the input tensor without the batch dimension. |
| HIGH | ludwig/modules/convolutional_modules.py | 0 | returns the size of the input tensor without the batch dimension. |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/test_visualization.py | 0 | ensure pdf and png figures from the experiments can be saved. :param csv_filename: csv fixture from tests.conftest.csv_f |
| HIGH | tests/integration_tests/utils.py | 0 | helper method to avoid code repetition in running an experiment. :param input_features: input schema :param output_featu |
| HIGH | tests/integration_tests/test_api.py | 0 | helper method to avoid code repetition in running an experiment. :param input_features: input schema :param output_featu |
| HIGH | tests/integration_tests/test_api.py | 0 | helper method to avoid code repetition in running an experiment. :param input_features: input schema :param output_featu |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| HIGH | tests/integration_tests/test_visualization_api.py | 0 | ensure pdf and png figures can be saved via visualization api call. :param experiment_to_use: object containing trained |
| 10 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ludwig/__init__.py | 18 | |
| LOW | ludwig/types.py | 9 | |
| LOW | ludwig/serve_ray_serve.py | 24 | |
| LOW | ludwig/serve_kserve.py | 18 | |
| LOW | ludwig/config_validation/validation.py | 13 | |
| LOW | ludwig/config_validation/validation.py | 14 | |
| LOW | ludwig/config_validation/validation.py | 14 | |
| LOW | ludwig/config_validation/validation.py | 15 | |
| LOW | ludwig/config_validation/validation.py | 16 | |
| LOW | ludwig/config_validation/validation.py | 16 | |
| LOW | ludwig/config_validation/validation.py | 26 | |
| LOW | ludwig/distributed/accelerate.py | 170 | |
| LOW | ludwig/distributed/base.py | 1 | |
| LOW | ludwig/datasets/__init__.py | 21 | |
| LOW | ludwig/datasets/__init__.py | 22 | |
| LOW | ludwig/datasets/loaders/misc_loaders.py | 3 | |
| LOW | ludwig/datasets/loaders/multilabel_loader.py | 6 | |
| LOW | ludwig/datasets/loaders/qa_loader.py | 8 | |
| LOW | ludwig/datasets/loaders/hugging_face.py | 15 | |
| LOW | ludwig/datasets/loaders/multiple_choice_loader.py | 9 | |
| LOW | ludwig/datasets/loaders/ner_loader.py | 8 | |
| LOW | ludwig/datasets/loaders/openml_loader.py | 15 | |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 15 | |
| LOW | ludwig/datasets/loaders/vqa_loader.py | 8 | |
| LOW | ludwig/datasets/loaders/code_loader.py | 3 | |
| LOW | ludwig/datasets/loaders/translation_loader.py | 8 | |
| LOW | ludwig/features/transforms.py | 7 | |
| LOW | ludwig/features/feature_registries.py | 58 | |
| LOW | ludwig/features/feature_registries.py | 59 | |
| LOW | ludwig/features/text_feature.py | 16 | |
| LOW | ludwig/features/timeseries_feature.py | 37 | |
| LOW | ludwig/contribs/__init__.py | 49 | |
| LOW | ludwig/contribs/__init__.py | 59 | |
| LOW | ludwig/contribs/__init__.py | 69 | |
| LOW | ludwig/combiners/combiners.py | 27 | |
| LOW | ludwig/combiners/__init__.py | 2 | |
| LOW | ludwig/combiners/tabpfn_v2_combiner.py | 20 | |
| LOW | ludwig/combiners/tabpfn_v2_combiner.py | 64 | |
| LOW | ludwig/utils/dataset_quality.py | 33 | |
| LOW | ludwig/utils/trainer_utils.py | 23 | |
| LOW | ludwig/utils/trainer_utils.py | 24 | |
| LOW | ludwig/utils/hf_utils.py | 1 | |
| LOW | ludwig/utils/misc_utils.py | 36 | |
| LOW | ludwig/utils/llm_utils.py | 1 | |
| LOW | ludwig/utils/checkpoint_utils.py | 27 | |
| LOW | ludwig/utils/checkpoint_utils.py | 28 | |
| LOW | ludwig/utils/upload_utils.py | 1 | |
| LOW | ludwig/utils/entmax/__init__.py | 3 | |
| LOW | ludwig/utils/entmax/__init__.py | 3 | |
| LOW | ludwig/utils/entmax/__init__.py | 3 | |
| LOW | ludwig/utils/entmax/__init__.py | 3 | |
| LOW | ludwig/utils/entmax/__init__.py | 4 | |
| LOW | ludwig/utils/entmax/__init__.py | 4 | |
| LOW | ludwig/utils/entmax/__init__.py | 4 | |
| LOW | ludwig/utils/entmax/__init__.py | 4 | |
| LOW | ludwig/utils/entmax/__init__.py | 4 | |
| LOW | ludwig/utils/entmax/__init__.py | 4 | |
| LOW | ludwig/utils/entmax/__init__.py | 4 | |
| LOW | ludwig/utils/entmax/__init__.py | 4 | |
| LOW | ludwig/utils/entmax/__init__.py | 14 | |
| 261 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .protolint.yaml | 1 | # Adapted from |
| LOW | ludwig/experiment_utils.py | 1 | # Copyright (c) 2023 Predibase, Inc., 2019 Uber Technologies, Inc. |
| LOW | ludwig/api_types.py | 1 | # Copyright (c) 2023 Predibase, Inc., 2019 Uber Technologies, Inc. |
| LOW | ludwig/collect.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/contrib.py | 1 | # Copyright (c) 2023 Predibase, Inc., 2019 Uber Technologies, Inc. |
| LOW | ludwig/hyperopt_cli.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/error.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/preprocess.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/globals.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/constants.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/predict.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/__init__.py | 1 | # Copyright (c) 2023 Predibase, Inc., 2019 Uber Technologies, Inc. |
| LOW | ludwig/serve.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/export.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/api.py | 1 | # !/usr/bin/env python |
| LOW | ludwig/experiment.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/cli.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/train.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/evaluate.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/callbacks/__init__.py | 1 | # !/usr/bin/env python |
| LOW | ludwig/datasets/dataset_config.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/archives.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/datasets/loaders/ieee_fraud.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/adult_census_income.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/kdd_loader.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/hugging_face.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/goemotions.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/higgs.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/split_loaders.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/ethos_binary.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/consumer_complaints_loader.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/creditcard_fraud.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/sarcastic_headlines.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/openml_loader.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/naval.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/agnews.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/sarcos.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/insurance_lite.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/rossman_store_sales.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/allstate_claims_severity.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/forest_cover.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/forest_cover.py | 61 | # Elevation quantitative meters Elevation in meters |
| LOW | ludwig/datasets/loaders/code_alpaca_loader.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/sst.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/santander_value_prediction.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/flickr8k.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/datasets/loaders/camseq.py | 1 | # Copyright (c) 2023 Aizen Corp. |
| LOW | ludwig/datasets/loaders/mnist.py | 1 | # Copyright (c) 2022 Predibase, Inc. |
| LOW | ludwig/features/feature_registries.py | 1 | # Copyright (c) 2023 Predibase, Inc., 2019 Uber Technologies, Inc. |
| LOW | ludwig/features/vector_feature.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/features/category_feature.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/features/binary_feature.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/features/text_feature.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/features/text_feature.py | 481 | # |
| LOW | ludwig/features/set_feature.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/features/bag_feature.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/features/number_feature.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/features/feature_utils.py | 1 | #! /usr/bin/env python |
| LOW | ludwig/features/date_feature.py | 1 | #! /usr/bin/env python |
| 161 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ludwig/serve_vllm.py | 27 | |
| LOW | ludwig/serve_vllm.py | 116 | |
| LOW | ludwig/serve.py | 132 | |
| LOW | ludwig/serve.py | 421 | |
| LOW | ludwig/inspect_model.py | 12 | |
| LOW | ludwig/api.py | 1865 | |
| LOW | ludwig/api.py | 232 | |
| LOW | ludwig/api.py | 1161 | |
| LOW | ludwig/serve_v2.py | 96 | |
| LOW | ludwig/config_sampling/explore_schema.py | 22 | |
| LOW | ludwig/config_sampling/explore_schema.py | 173 | |
| LOW | ludwig/config_sampling/explore_schema.py | 291 | |
| LOW | ludwig/config_sampling/parameter_sampling.py | 10 | |
| LOW | ludwig/explain/captum.py | 351 | |
| LOW | ludwig/explain/captum.py | 379 | |
| LOW | ludwig/explain/captum_ray.py | 32 | |
| LOW | ludwig/config_validation/checks.py | 224 | |
| LOW | ludwig/config_validation/checks.py | 237 | |
| LOW | ludwig/config_validation/checks.py | 329 | |
| LOW | ludwig/callbacks/studio.py | 183 | |
| LOW | ludwig/datasets/archives.py | 41 | |
| LOW | ludwig/datasets/archives.py | 67 | |
| LOW | ludwig/datasets/archives.py | 90 | |
| LOW | ludwig/datasets/loaders/newyorker_caption_contest.py | 19 | |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 256 | |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 333 | |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 363 | |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 406 | |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 425 | |
| LOW | ludwig/datasets/loaders/sst.py | 54 | |
| LOW | ludwig/datasets/loaders/sst.py | 278 | |
| LOW | ludwig/datasets/loaders/vqa_loader.py | 25 | |
| LOW | ludwig/datasets/loaders/vqa_loader.py | 51 | |
| LOW | ludwig/datasets/loaders/flickr8k.py | 23 | |
| LOW | ludwig/datasets/loaders/mnist.py | 109 | |
| LOW | ludwig/features/vector_feature.py | 44 | |
| LOW | ludwig/features/category_feature.py | 400 | |
| LOW | ludwig/features/text_feature.py | 324 | |
| LOW | ludwig/features/number_feature.py | 329 | |
| LOW | ludwig/features/date_feature.py | 72 | |
| LOW | ludwig/features/image_feature.py | 146 | |
| LOW | ludwig/features/image_feature.py | 499 | |
| LOW | ludwig/features/image_feature.py | 905 | |
| LOW | ludwig/features/sequence_feature.py | 380 | |
| LOW | ludwig/features/audio_feature.py | 81 | |
| LOW | ludwig/features/audio_feature.py | 242 | |
| LOW | ludwig/features/audio_feature.py | 438 | |
| LOW | ludwig/contribs/mlflow/mlflow3.py | 170 | |
| LOW | ludwig/combiners/combiners.py | 254 | |
| LOW | ludwig/combiners/combiners.py | 589 | |
| LOW | ludwig/utils/visualization_utils.py | 1398 | |
| LOW | ludwig/utils/sequence_packing.py | 27 | |
| LOW | ludwig/utils/image_utils.py | 127 | |
| LOW | ludwig/utils/dataset_quality.py | 268 | |
| LOW | ludwig/utils/batch_size_tuner.py | 19 | |
| LOW | ludwig/utils/trainer_utils.py | 291 | |
| LOW | ludwig/utils/training_report.py | 16 | |
| LOW | ludwig/utils/model_export.py | 172 | |
| LOW | ludwig/utils/algorithms_utils.py | 19 | |
| LOW | ludwig/utils/misc_utils.py | 69 | |
| 124 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | ludwig/config_validation/checks.py | 663 | # TODO: `prompt` by default should be set to null, not a default dict: |
| HIGH | ludwig/config_validation/checks.py | 692 | # TODO: retrieval by default should be set to null, not a default dict: |
| HIGH | ludwig/utils/output_feature_utils.py | 118 | "features, or disabling the bucketing setting bucketing_field to None / null, " |
| HIGH | ludwig/schema/trainer.py | 498 | "are inversely proportional to this vector. When null, a uniform preference is used." |
| HIGH | ludwig/schema/features/loss/loss.py | 87 | return "[undefined]" |
| HIGH | ludwig/schema/features/preprocessing/date.py | 38 | description="This parameter can either be a datetime format string, or null, in which case the datetime " |
| HIGH | ludwig/schema/combiners/common_transformer_options.py | 60 | description="The number of stacked fully connected layers (only applies if `reduce_output` is not null).", |
| HIGH | ludwig/schema/combiners/tabnet.py | 80 | description="Size of the virtual batch size used by ghost batch norm. If null, regular batch norm is used " |
| HIGH | ludwig/schema/encoders/sequence_encoders.py | 23 | `[{filter_size: 7, pool_size: 3}, {filter_size: 7, pool_size: 3}, {filter_size: 3, pool_size: null}, |
| HIGH | ludwig/schema/encoders/sequence_encoders.py | 24 | {filter_size: 3, pool_size: null}, {filter_size: 3, pool_size: null}, {filter_size: 3, pool_size: 3}]`. |
| HIGH | ludwig/schema/encoders/sequence_encoders.py | 408 | description="If stacked_layers is null, this is the number of elements in the stack of parallel convolutional " |
| HIGH | ludwig/schema/encoders/image/base.py | 216 | "each layer. It indicates the normalization applied to the activations and can be null, " |
| HIGH | ludwig/schema/encoders/image/base.py | 279 | "each layer. It indicates the norm of the output and can be null, batch or layer.", |
| HIGH | ludwig/schema/llms/peft.py | 1456 | "Per-source weights; must have the same length as `sources`. If null, all weights default to 1.0." |
| HIGH | ludwig/schema/llms/peft.py | 1513 | "If null, the first entry in `adapters` is used. Set this to a merged adapter " |
| HIGH | ludwig/modules/preference_losses.py | 135 | + beta * KL(policy || reference) |
| HIGH | tests/ludwig/utils/test_dataframe_utils.py | 85 | assert scalar_df.equals(expected_df) |
| HIGH | tests/ludwig/utils/test_data_utils.py | 51 | assert df.equals( |
| HIGH | tests/ludwig/utils/test_data_utils.py | 65 | assert df.equals( |
| HIGH | tests/ludwig/utils/test_data_utils.py | 81 | assert df.equals(pd.DataFrame([1, 2, 3, 4, 5], columns=["x"])) |
| HIGH | tests/ludwig/utils/test_dataset_utils.py | 34 | assert split_df.equals( |
| HIGH | tests/ludwig/utils/test_dataset_utils.py | 89 | assert split_df.equals( |
| HIGH | tests/ludwig/utils/test_dataset_utils.py | 144 | assert split_df.equals( |
| HIGH | tests/ludwig/utils/test_dataset_utils.py | 199 | assert split_df.equals( |
| HIGH | tests/ludwig/data/test_split.py | 81 | assert not s1.equals(s2) |
| HIGH | tests/ludwig/data/test_split.py | 85 | assert s1.equals(s3) |
| HIGH | tests/ludwig/data/test_split.py | 228 | assert not s1.equals(s2) |
| HIGH | tests/ludwig/data/test_split.py | 235 | assert s1.equals(s3) |
| HIGH | tests/integration_tests/test_visualization.py | 1605 | assert ground_truth_train_split.equals(pd.Series([0])) |
| HIGH | tests/integration_tests/test_mlflow.py | 81 | assert pred_df.equals(expected_df) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ludwig/check.py | 32 | except Exception: |
| LOW | ludwig/serve.py | 264 | except Exception: |
| LOW | ludwig/serve.py | 308 | except Exception as exc: |
| LOW | ludwig/serve.py | 331 | except Exception: |
| LOW | ludwig/serve.py | 372 | except Exception: |
| LOW | ludwig/api.py | 601 | except Exception: |
| LOW | ludwig/api.py | 617 | except Exception: |
| LOW | ludwig/api.py | 1551 | except Exception: |
| LOW | ludwig/config_generation.py | 101 | except Exception as exc: |
| LOW | ludwig/config_generation.py | 196 | except Exception as e: |
| LOW | ludwig/serve_v2.py | 324 | except Exception as exc: |
| LOW | ludwig/serve_v2.py | 344 | except Exception as exc: |
| LOW | ludwig/serve_v2.py | 370 | except Exception as exc: |
| LOW | ludwig/datasets/__init__.py | 320 | except Exception as e: |
| LOW | ludwig/datasets/loaders/openml_loader.py | 150 | except Exception as exc: |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 264 | except Exception as e: |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 274 | except Exception as fallback_e: |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 285 | except Exception: |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 291 | except Exception: |
| LOW | ludwig/datasets/loaders/dataset_loader.py | 345 | except Exception: |
| LOW | ludwig/features/binary_feature.py | 174 | except Exception as e: |
| LOW | ludwig/features/text_feature.py | 365 | except Exception: |
| LOW | ludwig/features/date_feature.py | 85 | except Exception as e: |
| MEDIUM | ludwig/features/date_feature.py | 72 | def date_to_list(date_value, datetime_format, preprocessing_parameters): |
| LOW | ludwig/features/anomaly_feature.py | 358 | except Exception as e: |
| LOW | ludwig/features/anomaly_feature.py | 367 | except Exception as e: |
| LOW | ludwig/features/anomaly_feature.py | 384 | except Exception as e: |
| LOW | ludwig/features/base_feature.py | 296 | except Exception: |
| LOW | ludwig/features/base_feature.py | 514 | except Exception as e: |
| LOW | ludwig/contribs/comet.py | 50 | except Exception: |
| LOW | ludwig/contribs/comet.py | 105 | except Exception: |
| LOW | ludwig/contribs/comet.py | 112 | except Exception: |
| LOW | ludwig/contribs/aim.py | 42 | except Exception: |
| LOW | ludwig/contribs/mlflow/mlflow3.py | 73 | except Exception: |
| LOW | ludwig/contribs/mlflow/mlflow3.py | 90 | except Exception as e: |
| LOW | ludwig/contribs/mlflow/mlflow3.py | 97 | except Exception as e: |
| LOW | ludwig/contribs/mlflow/mlflow3.py | 139 | except Exception as e: |
| LOW | ludwig/contribs/mlflow/mlflow3.py | 166 | except Exception: |
| LOW | ludwig/contribs/mlflow/mlflow3.py | 189 | except Exception: |
| LOW | ludwig/contribs/mlflow/mlflow3.py | 205 | except Exception as e: |
| LOW | ludwig/utils/image_utils.py | 116 | except Exception as e: |
| LOW | ludwig/utils/image_utils.py | 197 | except Exception: |
| LOW | ludwig/utils/image_utils.py | 209 | except Exception: |
| LOW | ludwig/utils/image_utils.py | 228 | except Exception: |
| LOW | ludwig/utils/hf_utils.py | 108 | except Exception: |
| LOW | ludwig/utils/hf_utils.py | 185 | except Exception as e: |
| LOW | ludwig/utils/model_export.py | 68 | except Exception as e: |
| LOW | ludwig/utils/model_export.py | 111 | except Exception as e: |
| LOW | ludwig/utils/model_export.py | 122 | except Exception as e2: |
| LOW | ludwig/utils/audio_utils.py | 73 | except Exception: |
| LOW | ludwig/utils/audio_utils.py | 84 | except Exception: |
| LOW | ludwig/utils/output_feature_utils.py | 110 | except Exception as e: |
| LOW | ludwig/utils/checkpoint_utils.py | 174 | except Exception as e: |
| LOW | ludwig/utils/checkpoint_utils.py | 394 | except Exception: |
| LOW | ludwig/utils/fs_utils.py | 97 | except Exception: |
| LOW | ludwig/backend/datasource.py | 50 | except Exception as e: |
| LOW | ludwig/visualize/_utils.py | 286 | except Exception: |
| LOW | ludwig/schema/utils.py | 404 | except Exception as e: |
| LOW | ludwig/schema/features/augmentation/utils.py | 141 | except Exception as e: |
| LOW | ludwig/schema/features/preprocessing/utils.py | 80 | except Exception as e: |
| 52 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | ludwig/api.py | 177 | # Initialize the config object |
| MEDIUM | ludwig/api.py | 804 | # Create the LLM model class instance with the loaded LLM if it hasn't been initialized yet. |
| MEDIUM | ludwig/datasets/loaders/dataset_loader.py | 490 | ) # This function is defined in the Hugging Face dataloader |
| MEDIUM | ludwig/features/timeseries_feature.py | 89 | # Create the list of shifts we want to perform over the series. |
| MEDIUM | ludwig/combiners/combiners.py | 57 | """This class provides an opaque handle to the input features, preventing them from being registered as state. |
| MEDIUM | ludwig/utils/hf_utils.py | 168 | # Create the repo if it doesn't exist. This is a no-op if the repo already exists |
| MEDIUM | ludwig/utils/audio_utils.py | 177 | # The following code for FBank is adapted from jameslyons/python_speech_features |
| MEDIUM | ludwig/utils/llm_quantization_utils.py | 25 | # Create a new Linear layer with the same shape |
| MEDIUM | ludwig/utils/fs_utils.py | 65 | # Create a windows compatible path from url path |
| MEDIUM | ludwig/backend/datasource.py | 55 | # Create a dataset from the paths and indices, then map to read files |
| MEDIUM | ludwig/modules/optimization_modules.py | 50 | # Create a dict of parameters to be passed to torch (i.e. everything except `type`): |
| MEDIUM | ludwig/modules/convolutional_modules.py | 1273 | # The following code for ResNet is adapted from the TensorFlow implementation |
| MEDIUM | ludwig/data/dataset_synthesizer.py | 400 | # Create a Random Image |
| MEDIUM | ludwig/hyperopt/run.py | 171 | # Initialize config object |
| MEDIUM | tests/ludwig/utils/test_upload_utils.py | 29 | # Create a temporary folder designating training output directory. |
| MEDIUM | tests/ludwig/utils/test_upload_utils.py | 48 | # Create a temporary folder designating training output directory. |
| MEDIUM | tests/ludwig/utils/test_hf_utils.py | 55 | # Create a temporary folder |
| MEDIUM | tests/ludwig/utils/test_hf_utils.py | 58 | # Create a file within the temporary folder |
| MEDIUM | tests/ludwig/utils/test_model_utils.py | 21 | # Create a sample model |
| MEDIUM | tests/ludwig/utils/test_model_utils.py | 46 | # Create a sample model |
| MEDIUM | tests/ludwig/utils/test_model_utils.py | 52 | # Create a new device for testing |
| MEDIUM | tests/ludwig/automl/test_base_config.py | 130 | # Create a temporary directory to store the parquet file |
| MEDIUM | tests/ludwig/automl/test_base_config.py | 133 | # Create a dataframe with all the types |
| MEDIUM | tests/ludwig/decoders/test_llm_decoders.py | 54 | # Create a Boolean mask for elements equal to 0 or 2 (padding or output) |
| MEDIUM | examples/mnist/advanced_model_training.py | 15 | # ## Import required libraries |
| MEDIUM | examples/mnist/assess_model_performance.py | 9 | # ## Import required libraries |
| MEDIUM | examples/llm_text_generation/simple_model_training.py | 9 | # Import required libraries |
| MEDIUM | examples/llm_few_shot_learning/simple_model_training.py | 9 | # Import required libraries |
| MEDIUM | examples/class_imbalance/model_training.py | 10 | # Import required libraries |
| MEDIUM | examples/titanic/simple_model_training.py | 8 | # Import required libraries |
| MEDIUM | examples/titanic/multiple_model_training.py | 10 | # ## Import required libraries |
| MEDIUM | examples/insurance_lite/train.py | 5 | # Import required libraries |
| MEDIUM | …amples/llm_zero_shot_learning/simple_model_training.py | 9 | # Import required libraries |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | ludwig/api.py | 769 | Upscales quantized weights of a model to fp16 and saves the result in a specified folder. Args: sav |
| HIGH | ludwig/api.py | 1497 | Preprocess a dataset and return it split into training / validation / test sets. Args: dataset: Sou |
| HIGH | ludwig/config_generation.py | 112 | Generate a Ludwig config from a natural language task description. Uses an LLM to translate the description into a |
| HIGH | ludwig/features/image_feature.py | 440 | Returns a torchvision transform that is compatible with the model variant. Note that the raw torchvision transform |
| HIGH | ludwig/utils/date_utils.py | 67 | Convert a numeric timestamp to a datetime object. `datetime` objects can be created from POSIX timestamps like thos |
| HIGH | ludwig/utils/trainer_utils.py | 544 | Freezes layers in a model whose names match a specified regular expression pattern. This function iterates over all |
| HIGH | ludwig/utils/hf_utils.py | 128 | Uploads a local folder to the Hugging Face Model Hub. Args: repo_id (str): The ID of the target repository |
| HIGH | ludwig/schema/utils.py | 76 | Deserialize a value into a config instance. Handles the common pattern of checking if a value is a raw dict |
| HIGH | ludwig/modules/training_hooks.py | 25 | Abstract method to be implemented by subclasses. This is the method that defines the custom behavior of the trai |
| HIGH | ludwig/modules/convolutional_modules.py | 1293 | Retrieve the size of each block_layer in the ResNet model. The number of block layers used for the Resnet model var |
| HIGH | ludwig/data/preprocessing.py | 523 | Builds a dataset from a dataframe and a list of features. Args: config: A dictionary containing the Ludwig |
| HIGH | ludwig/data/preprocessing.py | 991 | The purpose of this function is to balance the training dataset using either over-sampling or under- sampling. |
| HIGH | tests/ludwig/encoders/test_llm_encoders.py | 66 | Get the PEFT paramter name prefix for a given adapter type. Args: adapter: A valid config value for |
| HIGH | tests/integration_tests/utils.py | 212 | Helper method to generate synthetic data based on input, output feature specs. Args: input_features: schema |
| HIGH | tests/integration_tests/utils.py | 1071 | Asserts that the preprocessed dataset has the correct shape and dtype for a given feature type. Args: featu |
| HIGH | tests/integration_tests/parameter_update_utils.py | 24 | Reports on the number of parameters in a Ludwig component and their update status. Args: module: (Ludwi |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | ludwig/presets.py | 43 | # robust (interquartile) scaling on number features, mild-but-not-trivial FC stack, AdamW |
| MEDIUM | ludwig/api.py | 1940 | # use Ludwig's utility to facilitate creating a dataframe |
| MEDIUM | ludwig/explain/captum.py | 372 | # For a robust baseline, we take the mean of all samples from the training data. |
| MEDIUM | ludwig/config_validation/checks.py | 65 | """Checks instances of comprehensive (all parameters and defaults filled in) schema-validated config.""" |
| LOW | ludwig/datasets/loaders/misc_loaders.py | 50 | # mc1_targets / mc2_targets are dicts; just use best_answer as text |
| LOW | ludwig/features/vector_feature.py | 240 | # no overall stats, just return empty dictionary |
| LOW | ludwig/features/category_feature.py | 223 | # If no unknown is defined, just use the most popular token's index as the fallback index |
| LOW | ludwig/features/set_feature.py | 327 | # no overall stats, just return empty dictionary |
| LOW | ludwig/features/number_feature.py | 514 | # no overall stats, just return empty dictionary |
| LOW | ludwig/features/image_feature.py | 1355 | # no overall stats, just return empty dictionary |
| LOW | ludwig/features/timeseries_feature.py | 362 | # no overall stats, just return empty dictionary |
| LOW | ludwig/combiners/combiners.py | 674 | # todo: can we just use projector_size? # hidden_size, |
| LOW | ludwig/utils/visualization_utils.py | 1497 | # just use stripplots since they are categorical scatter plots. |
| LOW | ludwig/utils/llm_utils.py | 573 | # and just set it to a tensor of IGNORE_INDEX_TOKEN_ID so that we don't compute loss on this target tensor. |
| MEDIUM | ludwig/modules/loss_modules.py | 150 | # robust lambda |
| MEDIUM | …wig/config_validation/test_validate_config_combiner.py | 10 | # Essentially verifies that the combiner registry is not empty at import time: |
| LOW | tests/ludwig/modules/test_metric_modules.py | 558 | # Correct pattern: just call compute() — sync happens automatically inside. |
| MEDIUM | tests/integration_tests/test_input_feature_tied.py | 26 | # note: vocab parameter, below, is made up to facilitate creating input encoders |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ludwig/collect.py | 276 | # Output results parameters |
| LOW | ludwig/collect.py | 358 | # Output results parameters |
| LOW | ludwig/forecast.py | 102 | # Output results parameters |
| LOW | ludwig/predict.py | 148 | # Output results parameters |
| LOW | ludwig/evaluate.py | 151 | # Output results parameters |
| LOW | ludwig/config_validation/checks.py | 301 | # Check if there is a text or sequence output feature using a tagger decoder |
| LOW | ludwig/features/category_feature.py | 176 | # Check if the fallback label is in the vocab, if not add it. |
| LOW | ludwig/utils/visualization_utils.py | 335 | # Set ticks to the number of properties (in radians) |
| LOW | ludwig/utils/fs_utils.py | 54 | # Check if the cache path exists, if not create it |
| LOW | ludwig/utils/tokenizers.py | 802 | # Set it to eos_token to avoid NoneType errors in preprocessing. |
| LOW | ludwig/models/llm.py | 756 | # Check if the saved weights are merged (no adapter_config.json) or adapter-only |
| LOW | ludwig/automl/base_config.py | 314 | # Check if it is a nullboolean field. We do this since if you read a csv with |
| LOW | ludwig/schema/utils.py | 152 | # Check if the subclass overrides _jsonschema_type_mapping |
| LOW | ludwig/schema/utils.py | 478 | # Check if THIS class (or a parent) defines __post_init__ |
| LOW | ludwig/schema/utils.py | 1507 | # Check if subclass overrides _jsonschema_type_mapping - if so, use |
| LOW | ludwig/data/batcher/test_batcher.py | 42 | # Check if string loading works as well |
| LOW | ludwig/data/batcher/test_batcher.py | 93 | # Check if string loading works as well |
| LOW | ludwig/hyperopt/run.py | 189 | # Check if all features are grid type parameters and log UserWarning if needed |
| LOW | ludwig/hyperopt/execution.py | 65 | # Check if ConfigSpace 1.x (no 'q' parameter) |
| LOW | examples/kfold_cv/k-fold_cv_classification.sh | 19 | # Display results from K-fold cv |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | ludwig/datasets/configs/hc3.yaml | 10 | answer is human-written (0) or generated by ChatGPT (1). Each source row is |
| HIGH | ludwig/datasets/configs/hc3_chinese.yaml | 10 | of whether an answer is human-written (0) or generated by ChatGPT (1). |
| HIGH | ludwig/schema/metadata/configs/features.yaml | 339 | # TODO: review metadata generated by Copilot |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ludwig/api.py | 1199 | # Step 1: Preprocess the initial lookback window once |
| LOW | ludwig/api.py | 1230 | # Step 2: Incremental prediction loop — O(horizon) steps, each O(1) preprocessing |
| LOW | ludwig/api.py | 1259 | # Step 3: Update embeddings incrementally for the next step. |
| LOW | ludwig/config_validation/checks.py | 587 | # If the backend is not explicitly set, then we need to check if a Ray process is running |
| LOW | ludwig/distributed/base.py | 153 | The purpose of this function is to reduce network overhead. |
| LOW | ludwig/encoders/text_encoders.py | 2531 | # Step 1: Prepare quantized base model for training (freeze + cast). |
| LOW | ludwig/encoders/text_encoders.py | 2536 | # Step 2: Initialize adapter on quantized base if not already done |
| LOW | ludwig/encoders/text_encoders.py | 2540 | # Step 3: Load adapter weights from checkpoint |
| LOW | ludwig/data/preprocessing.py | 991 | """The purpose of this function is to balance the training dataset using either over-sampling or under- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ludwig/benchmarking/examples/process_config.py | 94 | # make sure to return the ludwig_config |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docker/build_and_push.sh | 4 | # Usage: |