Ashpgsem commited on
Commit
0f073c3
·
1 Parent(s): 0c155a5

Add model card

Browse files
Files changed (1) hide show
  1. README.md +66 -0
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - sklearn
5
+ - linear-regression
6
+ - example
7
+ ---
8
+ # Linear Regression Model for Ashpgsem
9
+
10
+ This is a simple linear regression model trained on dummy data.
11
+
12
+ ## Model Description
13
+
14
+ This model is a `sklearn.linear_model.LinearRegression` instance. It was trained to predict a target variable `y_train` based on two features, `feature1` and `feature2`.
15
+
16
+ ## Training Data
17
+
18
+ The model was trained on the following dummy data:
19
+
20
+ **Features (X_train):**
21
+
22
+ | feature1 | feature2 |
23
+ |-----------:|-----------:|
24
+ | 1 | 5 |
25
+ | 2 | 4 |
26
+ | 3 | 3 |
27
+ | 4 | 2 |
28
+ | 5 | 1 |
29
+
30
+
31
+ **Target (y_train):**
32
+
33
+ | 0 |
34
+ |----:|
35
+ | 2 |
36
+ | 4 |
37
+ | 5 |
38
+ | 4 |
39
+ | 5 |
40
+
41
+
42
+ ## Training Procedure
43
+
44
+ The model was trained using the default parameters of `sklearn.linear_model.LinearRegression`.
45
+
46
+ ## Usage
47
+
48
+ This model can be loaded using `skops.io`:
49
+
50
+
51
+ import skops.io as sio
52
+ from huggingface_hub import hf_hub_download
53
+
54
+ model_path = hf_hub_download(repo_id="Ashpgsem/rdmai_v2", filename="linear_regression_model.skops")
55
+ model = sio.load(model_path)
56
+
57
+ # Example prediction
58
+ import pandas as pd
59
+ new_data = pd.DataFrame({'feature1': [6, 7], 'feature2': [0, -1]})
60
+ predictions = model.predict(new_data)
61
+ print(predictions)
62
+
63
+
64
+ ## Limitations
65
+
66
+ This model is trained on very limited dummy data and should not be used for any real-world applications. It serves purely as an example for demonstrating model saving and sharing on Hugging Face Hub.