Skip to content

Commit

Permalink
docs: update notebook and test CI/CD on GL
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperHG90 committed Jan 5, 2021
1 parent a1a88d0 commit f136bd7
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions notebooks/year_prediction_msd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -18,7 +18,7 @@
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"from piven.experiments import PivenMlpExperiment\n",
"from piven.models import PivenMlpModel\n",
"import tensorflow as tf\n",
"from sklearn.compose import TransformedTargetRegressor\n",
"\n",
Expand All @@ -27,7 +27,41 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
"outputs": [],
"source": [
"records = []\n",
"with dpath.open(\"r\") as infile:\n",
" for line in infile.readlines():\n",
" line_split = line.replace(\"\\n\", \"\").split(\",\")\n",
" year = int(line_split[0])\n",
" inputs = [*map(lambda x: float(x), line_split[1:])]\n",
" records.append([year] + inputs)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"records = []\n",
"with dpath.open(\"r\") as infile:\n",
" for line in infile.readlines():\n",
" line_split = line.replace(\"\\n\", \"\").split(\",\")\n",
" year = int(line_split[0])\n",
" inputs = [*map(lambda x: float(x), line_split[1:])]\n",
" records.append([year] + inputs)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1620,9 +1654,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "PyCharm (pivenregressor)",
"language": "python",
"name": "python3"
"name": "pycharm-b9238b0d"
},
"language_info": {
"codemirror_mode": {
Expand Down

0 comments on commit f136bd7

Please sign in to comment.