### Update Devoir2.ipynb

parent cdfef733
 ... ... @@ -67,16 +67,16 @@ "- n_features the number of features in X\n", "and the outputs X and y\n", "\n", "For this purpose, we proceed in 4 steps:\n", "For this purpose, we proceed in 3 steps:\n", "\n", "- we generate samples of a geometric law of parameter p = 0.5, these samples are stored in the first column of X\n", "- for the other columns of X we do\n", "- We generate samples of a geometric law of parameter p = 0.5, these samples are stored in the first column of X\n", "- For the other columns of X we do\n", " - we generate randomly a parameter p between 0 and 1\n", " - we generate samples of a geometric law of parameter p\n", " - we add this samples to the sum of the previous column\n", " - we add this samples to the sum of the previous columns\n", "- For y, we compute the mean of X on the axis 1\n", " \n", "At the end, we have the matrix X where each column `Xi` is a sum of a samples generated from a geometric law and the previous columns `X0+...+Xi-1`.\n", "We generate `y` as the mean of `X` on the axis 1." "At the end, we have the matrix X where each column `Xi` is a sum of a samples generated from a geometric law and the previous columns `X0+...+Xi-1`." ] }, { ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!