mirror of
https://github.com/apachecn/ailearning.git
synced 2026-04-24 02:23:45 +08:00
2020-10-19 21:08:55
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
In [1]:
|
||||
|
||||
```
|
||||
```py
|
||||
import numpy as np
|
||||
|
||||
class Forest(object):
|
||||
@@ -72,7 +72,7 @@ class Forest(object):
|
||||
|
||||
In [2]:
|
||||
|
||||
```
|
||||
```py
|
||||
forest = Forest()
|
||||
print forest.tree_fraction
|
||||
|
||||
@@ -81,7 +81,7 @@ print forest.tree_fraction
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
```py
|
||||
0.0
|
||||
0.00293333333333
|
||||
|
||||
@@ -99,7 +99,7 @@ print forest.tree_fraction
|
||||
|
||||
In [3]:
|
||||
|
||||
```
|
||||
```py
|
||||
import numpy as np
|
||||
|
||||
class Forest(object):
|
||||
@@ -186,7 +186,7 @@ class Forest(object):
|
||||
|
||||
In [4]:
|
||||
|
||||
```
|
||||
```py
|
||||
forest = Forest()
|
||||
|
||||
for i in range(100):
|
||||
@@ -198,7 +198,7 @@ for i in range(100):
|
||||
|
||||
In [5]:
|
||||
|
||||
```
|
||||
```py
|
||||
import matplotlib.pyplot as plt
|
||||
from matplotlib import cm
|
||||
|
||||
@@ -404,7 +404,7 @@ Az4ROBwO+ETgcDgA/H9fWFGYjphtAwAAAABJRU5ErkJggg==
|
||||
|
||||
In [6]:
|
||||
|
||||
```
|
||||
```py
|
||||
forest = Forest()
|
||||
forest2 = Forest(p_lightning=5e-4)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user