ylecun/mnist
Viewer • Updated • 70k • 113k • 291
How to use ChilNik/PR_digits with Keras:
# !pip install -U keras tensorflow huggingface_hub
# Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here;
# "jax" and "torch" also work for computation once TensorFlow is installed.
import os
os.environ["KERAS_BACKEND"] = "tensorflow"
import keras
model = keras.saving.load_model("hf://ChilNik/PR_digits")
Модель берет изображение (в данном случае из mnist) определяет цифру которая изображена, делит эту цифру на 2 и выводит остаток от деления.
Оптимизаторы: Adam
Размер тренировочного датасета: 60000
Размер валидационного датасета: 6000
Размер тестового датасета: 10000
Результаты обучения: Loss: 0.045721635222435, Accuracy: 0.9848999977111816
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://ChilNik/PR_digits")