diff --git a/tests/test_learning.py b/tests/test_learning.py index 73975cf2a..0f1513be3 100644 --- a/tests/test_learning.py +++ b/tests/test_learning.py @@ -152,14 +152,16 @@ def test_decision_tree_learner(): def test_random_forest(): + random.seed("aima-python") iris = DataSet(name="iris") rF = RandomForest(iris) assert rF([5, 3, 1, 0.1]) == "setosa" - assert rF([6, 5, 3, 1.5]) == "versicolor" + assert rF([6, 5, 3, 1]) == "versicolor" assert rF([7.5, 4, 6, 2]) == "virginica" def test_neural_network_learner(): + random.seed("aima-python") iris = DataSet(name="iris") classes = ["setosa", "versicolor", "virginica"] iris.classes_to_numbers(classes) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy