Downloads · 30 days
0
donaldsebleung/california-housing-linear-simple
california-housing-linear-simple is a machine learning model from donaldsebleung. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mindspore. The card lists the license as apache-2.0.
A simple linear regression model to predict house prices in California
Downloads · 30 days
0
Access
Public
Updated Apr 7, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.ipynb23.8 KB · 68%
From the Hugging Face model README
A simple linear regression model to predict house prices in California
A simple linear regression model to predict house prices in California.
This model was trained on the California Housing Dataset using MindSpore 2.8.0 and exported in MindIR format as california-housing-linear-simple.mindir.
The dependencies are specified in the included requirements.txt.
pip install -r requirements.txt
Load the model weights and initialize the mindspore.nn.GraphCell.
import mindspore
import mindspore.nn as nn
graph = mindspore.load('california-housing-linear-simple.mindir')
model = nn.GraphCell(graph)
A mindspore.Tensor of shape (n, 8) where n is the number of input samples.
Each input feature has dtype=mindspore.dtype.float16.
A mindspore.Tensor of shape (n, 1) where n is the number of output predictions.
Each output prediction has dtype=mindspore.dtype.float16.
See the included notebook 01-load-infer.ipynb for details.