Commit
•
d610767
1
Parent(s):
727366a
First model version
Browse files- model.joblib +3 -0
- test.ipynb +54 -0
model.joblib
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cdd6d21e9b1fc3243280669a93622b50b06cf2b5996c5a376ab2cf3f4d35fe12
|
3 |
+
size 578
|
test.ipynb
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": 1,
|
6 |
+
"metadata": {},
|
7 |
+
"outputs": [
|
8 |
+
{
|
9 |
+
"data": {
|
10 |
+
"text/plain": [
|
11 |
+
"['model.joblib']"
|
12 |
+
]
|
13 |
+
},
|
14 |
+
"execution_count": 1,
|
15 |
+
"metadata": {},
|
16 |
+
"output_type": "execute_result"
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"source": [
|
20 |
+
"from sklearn import linear_model\n",
|
21 |
+
"reg = linear_model.LinearRegression()\n",
|
22 |
+
"reg.fit([[0, 0], [1, 1], [2, 2]], [0, 1, 2])\n",
|
23 |
+
"\n",
|
24 |
+
"from joblib import dump, load\n",
|
25 |
+
"dump(reg, 'model.joblib')"
|
26 |
+
]
|
27 |
+
}
|
28 |
+
],
|
29 |
+
"metadata": {
|
30 |
+
"interpreter": {
|
31 |
+
"hash": "272220f5328ed0d855c22bcb5e14630906443758ba8eac4bbef53c2db8ee576a"
|
32 |
+
},
|
33 |
+
"kernelspec": {
|
34 |
+
"display_name": "Python 3.9.7 ('base')",
|
35 |
+
"language": "python",
|
36 |
+
"name": "python3"
|
37 |
+
},
|
38 |
+
"language_info": {
|
39 |
+
"codemirror_mode": {
|
40 |
+
"name": "ipython",
|
41 |
+
"version": 3
|
42 |
+
},
|
43 |
+
"file_extension": ".py",
|
44 |
+
"mimetype": "text/x-python",
|
45 |
+
"name": "python",
|
46 |
+
"nbconvert_exporter": "python",
|
47 |
+
"pygments_lexer": "ipython3",
|
48 |
+
"version": "3.9.7"
|
49 |
+
},
|
50 |
+
"orig_nbformat": 4
|
51 |
+
},
|
52 |
+
"nbformat": 4,
|
53 |
+
"nbformat_minor": 2
|
54 |
+
}
|