mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
Reenable files when TensorFlow supports the current Python (#11318)
* Remove python_version < '3.12' for tensorflow * Reenable dynamic_programming/k_means_clustering_tensorflow.py * updating DIRECTORY.md * Try to fix ruff * Try to fix ruff * Try to fix ruff * Try to fix ruff * Try to fix ruff * Reenable machine_learning/lstm/lstm_prediction.py * updating DIRECTORY.md * Try to fix ruff * Reenable computer_vision/cnn_classification.py * updating DIRECTORY.md * Reenable neural_network/input_data.py * updating DIRECTORY.md * Try to fix ruff * Try to fix ruff * Try to fix mypy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Try to fix ruff * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -18,9 +18,9 @@ This module and all its submodules are deprecated.
|
||||
"""
|
||||
|
||||
|
||||
import collections
|
||||
import gzip
|
||||
import os
|
||||
import typing
|
||||
import urllib
|
||||
|
||||
import numpy
|
||||
@ -28,7 +28,12 @@ from tensorflow.python.framework import dtypes, random_seed
|
||||
from tensorflow.python.platform import gfile
|
||||
from tensorflow.python.util.deprecation import deprecated
|
||||
|
||||
_Datasets = collections.namedtuple("_Datasets", ["train", "validation", "test"])
|
||||
|
||||
class _Datasets(typing.NamedTuple):
|
||||
train: "_DataSet"
|
||||
validation: "_DataSet"
|
||||
test: "_DataSet"
|
||||
|
||||
|
||||
# CVDF mirror of http://yann.lecun.com/exdb/mnist/
|
||||
DEFAULT_SOURCE_URL = "https://storage.googleapis.com/cvdf-datasets/mnist/"
|
Reference in New Issue
Block a user