Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
1b4d44d29129eee148c6fd7d428aedf0
mooc-rr
Commits
af9b4000
Commit
af9b4000
authored
Jul 11, 2021
by
1b4d44d29129eee148c6fd7d428aedf0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module3/exo3/Paweena
parent
cece2db3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
12 deletions
+22
-12
exercice.ipynb
module3/exo3/exercice.ipynb
+22
-12
No files found.
module3/exo3/exercice.ipynb
View file @
af9b4000
...
...
@@ -56,6 +56,7 @@
}
],
"source": [
"# Install library/package\n",
"pip install arviz"
]
},
...
...
@@ -81,6 +82,7 @@
}
],
"source": [
"# Install library/package\n",
"pip install git+https://github.com/pymc-devs/pymc3"
]
},
...
...
@@ -108,6 +110,7 @@
}
],
"source": [
"# Install library/package\n",
"pip install bokeh"
]
},
...
...
@@ -127,6 +130,7 @@
}
],
"source": [
"# Install library/package\n",
"conda create -n py35 python=3.5 anaconda"
]
},
...
...
@@ -146,25 +150,17 @@
}
],
"source": [
"# Install library/package\n",
"conda install spyder"
]
},
{
"cell_type": "code",
"execution_count":
4
,
"execution_count":
9
,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting package metadata (current_repodata.json): | Killed\n",
"\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
"outputs": [],
"source": [
"# Install library/package\n",
"conda install theano"
]
},
...
...
@@ -184,6 +180,7 @@
}
],
"source": [
"# Install library/package\n",
"conda install tensorflow"
]
},
...
...
@@ -203,6 +200,7 @@
}
],
"source": [
"# Install library/package\n",
"conda install keras"
]
},
...
...
@@ -265,6 +263,7 @@
}
],
"source": [
"# Install library/package\n",
"pip install pymc3"
]
},
...
...
@@ -291,6 +290,7 @@
}
],
"source": [
"# Install library/package\n",
"pip install numpy==1.15.4"
]
},
...
...
@@ -300,6 +300,7 @@
"metadata": {},
"outputs": [],
"source": [
"# import library\n",
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt"
...
...
@@ -528,6 +529,7 @@
}
],
"source": [
"# read dataset from URL (July 2021)\n",
"data_url = \"https://scrippsco2.ucsd.edu/assets/data/atmospheric/stations/in_situ_co2/monthly/monthly_in_situ_co2_mlo.csv\"\n",
"data_monthly= pd.read_csv(data_url,skiprows=54)\n",
"data_monthly"
...
...
@@ -756,6 +758,7 @@
}
],
"source": [
"# Delete row 1: first two lines : \" \" and “Excel”. These lines seems to be useless.\n",
"data_monthly = data_monthly.iloc[1:]\n",
"data_monthly"
]
...
...
@@ -983,6 +986,7 @@
}
],
"source": [
"# Delete row 1: first two lines : \" \" and “Excel”. These lines seems to be useless.\n",
"data = data_monthly.iloc[1:]\n",
"data"
]
...
...
@@ -1280,6 +1284,7 @@
}
],
"source": [
"# Install library/package\n",
"conda install mkl-service"
]
},
...
...
@@ -1299,6 +1304,7 @@
}
],
"source": [
"# Install library/package\n",
"pip install pymc3==3.11.2"
]
},
...
...
@@ -1322,6 +1328,8 @@
}
],
"source": [
"# make plot\n",
"\n",
"import pymc3 as pm\n",
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
...
...
@@ -1489,6 +1497,8 @@
"metadata": {},
"outputs": [],
"source": [
"# make plot using ggplot\n",
"\n",
"%matplotlib inline\n",
"from plotnine.data import mpg\n",
"from plotnine import ggplot\n",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment