Skip to content

Commit

Permalink
added xgbboost
Browse files Browse the repository at this point in the history
  • Loading branch information
BNukhkadiev committed Jun 11, 2024
1 parent 7419c48 commit 8687d44
Show file tree
Hide file tree
Showing 4 changed files with 767 additions and 108 deletions.
Binary file modified .DS_Store
Binary file not shown.
57 changes: 0 additions & 57 deletions notebooks/multi_input.ipynb → notebooks/fasttext_rnn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -249,32 +249,6 @@
"data"
]
},
{
"cell_type": "code",
"execution_count": 33,
"id": "960490d2-1025-4485-b535-84760db6861a",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(1989, 11020)"
]
},
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# from sklearn.feature_extraction.text import TfidfVectorizer\n",
"\n",
"# corpus = data.values[:, 0]\n",
"# vectorizer = TfidfVectorizer()\n",
"# X = vectorizer.fit_transform(corpus)\n",
"# X.shape"
]
},
{
"cell_type": "markdown",
"id": "8d113413-9a7e-4984-b47e-899101e898e6",
Expand Down Expand Up @@ -427,37 +401,6 @@
"print(\"Test MAE: \", mse.compute()**0.5) "
]
},
{
"cell_type": "markdown",
"id": "7088f960-b789-41e7-8818-4a1adb53cc73",
"metadata": {},
"source": [
"## Multi-input approach\n",
"\n",
"Vectorize data using:\n",
"1. Word2vec\n",
"2. tf-idf\n",
"3. fasttext\n",
"\n",
"Concat vector with stock price and predict"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "6c48be90-6f1d-4595-84ef-645f831192e3",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "0df2bae2-83ac-481b-9f1c-afa706438fa4",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "99bceb5c-b7a7-4470-953c-77a1dbf3e155",
Expand Down
Loading

0 comments on commit 8687d44

Please sign in to comment.