Instructions to use prabinpanta0/celsius-to-fahrenheit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use prabinpanta0/celsius-to-fahrenheit with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy) # See https://github.com/keras-team/tf-keras for more details. from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("prabinpanta0/celsius-to-fahrenheit") - Notebooks
- Google Colab
- Kaggle
My Temperature Conversion Model
This model is a simple neural network that converts temperatures from Celsius to Fahrenheit.
Model Description
This model was created as a practice exercise for the course "Intro to TensorFlow for Deep Learning" from Udacity, given by TensorFlow. It was trained on a dataset of temperature values in Celsius and their corresponding values in Fahrenheit. The model uses a small neural network built with TensorFlow.
Usage
To use this model, you can load it with TensorFlow and make predictions as shown below:
import tensorflow as tf
model = tf.keras.models.load_model('celsius-to-fahrenheit')
prediction = model.predict([100.0])
print(f"Prediction for 100°C in Fahrenheit: {prediction[0][0]}")
Training
The model was trained using the following parameters:
- Optimizer: Adam
- Loss function: Mean Squared Error
- Epochs: 1000
- Batch size: 10
Metrics
The model was evaluated based on the Mean Squared Error loss during training.
Model Output
Datasets
The model was trained on the prabinpanta0/celsius-to-fahrenheit dataset.
License
This model is released under the MIT license.
- Downloads last month
- 15

