Downloads · 30 days
0
zany5666/RIDGEStudentPerformance.Data
RIDGEStudentPerformance.Data is a machine learning model from zany5666. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated May 5, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 75%
From the Hugging Face model README
from sklearn.linear_model import Ridge
ridge_model = Ridge(alpha=1.0, random_state=42) # alpha is the regularization strength ridge_model.fit(X_train_scaled, y_train)
y_pred_ridge = ridge_model.predict(X_test_scaled)
mse_ridge = mean_squared_error(y_test, y_pred_ridge) print("Mean Squared Error (Ridge Regression):", mse_ridge)