From fc775c0d11c5ed382d9db50620293005c2dfbc17 Mon Sep 17 00:00:00 2001 From: brad-gh <32170926+brad-gh@users.noreply.github.com> Date: Mon, 31 Oct 2022 00:24:59 -0400 Subject: [PATCH] Update README.md --- piscine/week02/day03/ex05/audit/README.md | 52 ++++++++++++----------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/piscine/week02/day03/ex05/audit/README.md b/piscine/week02/day03/ex05/audit/README.md index e702ce3..580d8b7 100644 --- a/piscine/week02/day03/ex05/audit/README.md +++ b/piscine/week02/day03/ex05/audit/README.md @@ -19,16 +19,17 @@ dtype: int64 ```console First 10 rows: -array([[1., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0.], - [1., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0.], - [1., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0.], - [1., 0., 0., 1., 0., 1., 0., 0., 0., 1., 0.], - [1., 0., 0., 1., 0., 0., 0., 1., 0., 1., 0.], - [1., 0., 0., 1., 0., 0., 1., 0., 0., 1., 0.], - [1., 0., 0., 1., 0., 0., 1., 0., 0., 1., 0.], - [1., 0., 0., 1., 0., 1., 0., 0., 0., 1., 0.], - [1., 0., 0., 1., 0., 0., 1., 0., 0., 1., 0.], - [0., 1., 1., 0., 0., 0., 1., 0., 0., 0., 1.]]) + array([[1., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0.], + [1., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0.], + [1., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0.], + [1., 0., 0., 1., 0., 1., 0., 0., 0., 1., 0.], + [1., 0., 0., 1., 0., 0., 0., 1., 0., 1., 0.], + [1., 0., 0., 1., 0., 0., 1., 0., 0., 1., 0.], + [1., 0., 0., 1., 0., 0., 1., 0., 0., 1., 0.], + [1., 0., 0., 1., 0., 1., 0., 0., 0., 1., 0.], + [1., 0., 0., 1., 0., 0., 1., 0., 0., 1., 0.], + [0., 1., 1., 0., 0., 0., 1., 0., 0., 0., 1.]]) + ``` ##### The question 3 is validated if the transformed test set by the `OrdinalEncoder` fitted on the train set is as below with the columns ordered as `["menopause", "age", "tumor-size","inv-nodes", "deg-malig"]`: @@ -36,23 +37,24 @@ array([[1., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0.], ```console First 10 rows: -array([[1., 2., 5., 0., 1.], - [1., 3., 4., 0., 1.], - [1., 2., 4., 0., 1.], - [1., 3., 2., 0., 1.], - [1., 4., 3., 0., 1.], - [1., 4., 5., 0., 0.], - [2., 5., 4., 0., 1.], - [2., 5., 8., 0., 1.], - [0., 2., 3., 0., 2.], - [1., 3., 6., 4., 2.]]) + array([[1., 2., 5., 0., 1.], + [1., 3., 4., 0., 1.], + [1., 2., 4., 0., 1.], + [1., 3., 2., 0., 1.], + [1., 4., 3., 0., 1.], + [1., 4., 5., 0., 0.], + [2., 5., 4., 0., 1.], + [2., 5., 8., 0., 1.], + [0., 2., 3., 0., 2.], + [1., 3., 6., 4., 2.]]) + ``` ##### The question 4 is validated if the column transformer transformed that is fitted on the X_train, transformed the X_test as: -```console -# First 2 rows: + ```console + # First 2 rows: -array([[1., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 1., 2., 5., 0., 1.], - [1., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 1., 3., 4., 0., 1.]]) -``` + array([[1., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 1., 2., 5., 0., 1.], + [1., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 1., 3., 4., 0., 1.]]) + ```