Neuron 101

Classification / Ensemble methods

Türkçe

Plate38

Unit 4 · Topic 6 of 10

Ensemble methods

Medium, 8 min, 8 steps

812162024283236024681012temperature, degreessunny hours
Keyboard: left and right arrows change the step, space plays and pauses.

Step 1 of 8 Days

The same 16 days

The red circles are days when the ice cream sold out, the blue squares days when it did not. As in the decision tree topic, but this time we build many trees instead of one.

Open in Colab
  1. def torbala(gunler, sayi, kur):
  2. agaclar = []
  3. for _ in range(sayi):
  4. orneklem = [
  5. random.choice(gunler)
  6. for _ in gunler]
  7. agaclar.append(kur(orneklem))
  8. return agaclar
  9. def oyla(agaclar, x):
  10. oy = sum(a(x) for a in agaclar)
  11. return int(2 * oy >= len(agaclar))
agac
15
oy
9
sinif
1