best for now RMSE: 30.937

This commit is contained in:
2025-11-07 00:08:08 +03:00
parent cb2b031e9c
commit cfae423f11
4 changed files with 140 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ class Node:
return node
def list_nodes(self) -> list[Node]:
"""Список всех узлов поддерева, начиная с текущего (aka depth-first-search)."""
nodes: list[Node] = [self]
for child in self.children:
nodes.extend(child.list_nodes())