Skip to content

Should we remove dependencies keras and tensorflow? #15418

Description

@cclauss


Next week, that will be upgraded to Python 3.15t.

tensorflow is used in the following files:

  • computer_vision/cnn_classification.py
  • dynamic_programming/k_means_clustering_tensorflow.py
  • neural_network/input_data.py

keras is used in the following files:

  • computer_vision/cnn_classification.py
  • machine_learning/lstm/lstm_prediction.py

Many of these files seem to be how-to-use scripts rather than algorithms as defined in CONTRIBUTING.md.

All of these files must be ignored in our pytests so we are blind to bugs in them.

run: uv run --with=pytest-run-parallel pytest
--iterations=8 --parallel-threads=auto --ignore-gil-enabled
--ignore=computer_vision/cnn_classification.py
--ignore=computer_vision/flip_augmentation.py
--ignore=computer_vision/harris_corner.py
--ignore=computer_vision/mosaic_augmentation.py
--ignore=data_compression/peak_signal_to_noise_ratio.py
--ignore=digital_image_processing/
--ignore=docs/conf.py
--ignore=dynamic_programming/k_means_clustering_tensorflow.py
--ignore=machine_learning/lstm/lstm_prediction.py
--ignore=neural_network/input_data.py

We should work to reduce the number of Python files that we ignore when we run pytest.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions