fix
This commit is contained in:
parent
ca70a52e9f
commit
bea6c0cada
@ -19996,3 +19996,5 @@
|
|||||||
2004.0621537194256
|
2004.0621537194256
|
||||||
1924.6022305381223
|
1924.6022305381223
|
||||||
1967.4833548100212
|
1967.4833548100212
|
||||||
|
1999.0
|
||||||
|
1999.0
|
||||||
|
|
@ -11560,3 +11560,4 @@
|
|||||||
1935.8485031558441
|
1935.8485031558441
|
||||||
1940.562491157199
|
1940.562491157199
|
||||||
1958.4093899338734
|
1958.4093899338734
|
||||||
|
1999.0
|
|
30
run.ipynb
30
run.ipynb
@ -504,7 +504,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 115,
|
"execution_count": 127,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@ -512,28 +512,46 @@
|
|||||||
"testYPath = \"./dev-1/out.tsv\"\n",
|
"testYPath = \"./dev-1/out.tsv\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"testX = pd.read_csv(testXPath, sep='\\t', nrows=nrows, header=None)\n",
|
"testX = pd.read_csv(testXPath, sep='\\t', nrows=nrows, header=None)\n",
|
||||||
"\n",
|
|
||||||
"# testY = pd.read_csv(testYPath, sep='\\t', nrows=nrows, header=None)\n",
|
"# testY = pd.read_csv(testYPath, sep='\\t', nrows=nrows, header=None)\n",
|
||||||
"testXtfidfVector = vectorizer.transform(testX[0])\n"
|
"testXtfidfVector = vectorizer.transform(testX[0])\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 116,
|
"execution_count": 128,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"[1967.93839413 1941.34584207 1967.15515902 ... 1935.84850316 1940.56249116\n",
|
"11562\n",
|
||||||
" 1958.40938993]\n"
|
"11562\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"print(testX.shape[0])\n",
|
||||||
|
"\n",
|
||||||
|
"print(testXtfidfVector.shape[0])"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 117,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"11562\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"pred = reg.predict(testXtfidfVector)\n",
|
"pred = reg.predict(testXtfidfVector)\n",
|
||||||
"print(pred)\n",
|
"print(len(pred))\n",
|
||||||
"\n",
|
"\n",
|
||||||
"import csv\n",
|
"import csv\n",
|
||||||
"with open(testYPath, 'w', newline='') as f_output:\n",
|
"with open(testYPath, 'w', newline='') as f_output:\n",
|
||||||
|
@ -14217,3 +14217,4 @@
|
|||||||
1936.0490932436148
|
1936.0490932436148
|
||||||
1990.1215448613398
|
1990.1215448613398
|
||||||
1913.0711081496029
|
1913.0711081496029
|
||||||
|
1999.0
|
|
Loading…
Reference in New Issue
Block a user