Skip to content

Commit 55ae8c6

Browse files
committed
https://pedroazambuja.medium.com/adaboost-adaptive-boosting-dbbec150fced
1 parent bd8378b commit 55ae8c6

File tree

1 file changed

+29
-23
lines changed

1 file changed

+29
-23
lines changed

Adaboost.ipynb

+29-23
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": null,
5+
"execution_count": 1,
66
"metadata": {
77
"id": "WLpfCn9XJqu7"
88
},
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"cell_type": "code",
33-
"execution_count": null,
33+
"execution_count": 2,
3434
"metadata": {
3535
"id": "fq-a--cbJqu9"
3636
},
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "code",
53-
"execution_count": null,
53+
"execution_count": 3,
5454
"metadata": {
5555
"id": "V9n-GkRzJqu9"
5656
},
@@ -77,7 +77,7 @@
7777
},
7878
{
7979
"cell_type": "code",
80-
"execution_count": null,
80+
"execution_count": 4,
8181
"metadata": {
8282
"id": "lyqqo0fXJqu-"
8383
},
@@ -99,7 +99,7 @@
9999
},
100100
{
101101
"cell_type": "code",
102-
"execution_count": null,
102+
"execution_count": 5,
103103
"metadata": {
104104
"id": "RHBpWTBTJqu-"
105105
},
@@ -121,7 +121,7 @@
121121
},
122122
{
123123
"cell_type": "code",
124-
"execution_count": null,
124+
"execution_count": 6,
125125
"metadata": {
126126
"id": "1SANz_9cJqu_"
127127
},
@@ -143,25 +143,28 @@
143143
},
144144
{
145145
"cell_type": "code",
146-
"execution_count": null,
146+
"execution_count": 7,
147147
"metadata": {
148+
"colab": {
149+
"base_uri": "https://localhost:8080/"
150+
},
148151
"id": "xi2r0G_IJqu_",
149-
"outputId": "86c9dd4c-5007-4701-d705-ddf07749c9c0"
152+
"outputId": "10abb273-aa72-4b92-9a45-edb4cf7071ba"
150153
},
151154
"outputs": [
152155
{
153-
"name": "stdout",
154156
"output_type": "stream",
157+
"name": "stdout",
155158
"text": [
156159
"Matriz de Confusão sem Adaboost:\n",
157-
"[[18 0 0]\n",
158-
" [ 0 0 24]\n",
159-
" [ 0 0 18]]\n",
160+
"[[16 0 0]\n",
161+
" [ 0 19 0]\n",
162+
" [ 0 25 0]]\n",
160163
"Matriz de Confusão sem Adaboost:\n",
161-
"[[18 0 0]\n",
162-
" [ 0 18 6]\n",
163-
" [ 0 0 18]]\n",
164-
"Acurácia sem Adaboost: 0.6\n",
164+
"[[16 0 0]\n",
165+
" [ 0 19 0]\n",
166+
" [ 0 6 19]]\n",
167+
"Acurácia sem Adaboost: 0.5833333333333334\n",
165168
"Acurácia com Adaboost: 0.9\n"
166169
]
167170
}
@@ -199,7 +202,7 @@
199202
},
200203
{
201204
"cell_type": "code",
202-
"execution_count": null,
205+
"execution_count": 8,
203206
"metadata": {
204207
"id": "kz1O13DKJqvA"
205208
},
@@ -220,20 +223,23 @@
220223
},
221224
{
222225
"cell_type": "code",
223-
"execution_count": null,
226+
"execution_count": 9,
224227
"metadata": {
228+
"colab": {
229+
"base_uri": "https://localhost:8080/"
230+
},
225231
"id": "nVedkP3qJqvA",
226-
"outputId": "56de05f5-6c6a-4148-aa46-f4bb751aa875"
232+
"outputId": "2599414f-1929-4bf0-956e-cd43bfd48c41"
227233
},
228234
"outputs": [
229235
{
230-
"name": "stdout",
231236
"output_type": "stream",
237+
"name": "stdout",
232238
"text": [
233239
"Matriz de Confusão do SVC com Adaboost:\n",
234-
"[[18 0 0]\n",
235-
" [ 0 22 2]\n",
236-
" [ 0 0 18]]\n",
240+
"[[16 0 0]\n",
241+
" [ 0 18 1]\n",
242+
" [ 0 1 24]]\n",
237243
"Acurácia do SVC com Adaboost: 0.9666666666666667\n"
238244
]
239245
}

0 commit comments

Comments
 (0)