Skip to content

Commit

Permalink
has_one_root fix (#1091)
Browse files Browse the repository at this point in the history
* has_one_root fix

* test fix
  • Loading branch information
maypink committed Apr 27, 2023
1 parent 36b86af commit f02b626
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fedot/core/pipelines/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
has_no_cycle,
has_no_isolated_nodes,
has_no_self_cycled_nodes,
has_root
has_one_root
)
from golem.core.optimisers.graph import OptGraph

Expand All @@ -30,7 +30,7 @@
)
from fedot.core.repository.tasks import TaskTypesEnum

common_rules = [has_root,
common_rules = [has_one_root,
has_no_cycle,
has_no_self_cycled_nodes,
has_no_isolated_nodes,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base framework
thegolem @ git+https://github.com/aimclub/GOLEM.git@4700dde75acb22b30a4f35c95baddc1c635d7020
thegolem @ git+https://github.com/aimclub/GOLEM.git@3dc2a9b0749ea118b5e290d259c4582edeb1db2e

# Data
numpy>=1.16.0, !=1.24.0
Expand Down
3 changes: 2 additions & 1 deletion test/unit/optimizer/gp_operators/test_mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path

import pytest
from golem.core.optimisers.genetic.operators.base_mutations import MutationStrengthEnum

from fedot.core.composer.gp_composer.specific_operators import boosting_mutation
from fedot.core.data.data import InputData
Expand All @@ -16,7 +17,7 @@
from golem.core.dag.graph_node import GraphNode
from golem.core.dag.verification_rules import DEFAULT_DAG_RULES
from golem.core.optimisers.genetic.gp_params import GPAlgorithmParameters
from golem.core.optimisers.genetic.operators.mutation import Mutation, MutationStrengthEnum
from golem.core.optimisers.genetic.operators.mutation import Mutation
from golem.core.optimisers.graph import OptGraph, OptNode
from golem.core.optimisers.optimizer import GraphGenerationParams
from test.unit.composer.test_composer import to_numerical
Expand Down

0 comments on commit f02b626

Please sign in to comment.