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
422b3b2bc6aaa112c184ee1926b56a23
mooc-rr
Commits
1774bfe4
Commit
1774bfe4
authored
May 09, 2020
by
422b3b2bc6aaa112c184ee1926b56a23
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction []
parent
cabaa9fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
toy_notebook_fr.ipynb
module2/exo1/toy_notebook_fr.ipynb
+4
-4
No files found.
module2/exo1/toy_notebook_fr.ipynb
View file @
1774bfe4
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
}
}
],
],
"source": [
"source": [
"
In [1]:
from math import *\n",
"from math import *\n",
"print(pi)"
"print(pi)"
]
]
},
},
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
}
}
],
],
"source": [
"source": [
"
In [2]:
import numpy as np\n",
"import numpy as np\n",
"np.random.seed(seed=42)\n",
"np.random.seed(seed=42)\n",
"N = 10000\n",
"N = 10000\n",
"x = np.random.uniform(size=N, low=0, high=1)\n",
"x = np.random.uniform(size=N, low=0, high=1)\n",
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
}
}
],
],
"source": [
"source": [
"
In [3]:
%matplotlib inline\n",
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"np.random.seed(seed=42)\n",
"np.random.seed(seed=42)\n",
"N = 1000\n",
"N = 1000\n",
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
}
}
],
],
"source": [
"source": [
"
In [4]:
4*np.mean(accept)"
"4*np.mean(accept)"
]
]
},
},
{
{
...
...
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