INNER CODE UNIT · Python

Node

astroautomata/SymbolicRegression.jl · benchmark/analyze.py:5

class Node:
    """Simple tree storing data at each node"""

    def __init__(self):
        self.data = {}
        self.parent = None
        self.children = []

    def __repr__(self):
        return f"Node with {len(self.children)} children: " + str(self.data)


# Pre-process with:
# Delete first two lines.
# :%s/╎/|/gce
# %g/^/exe "norm v$F|/[0-9]\<enter>hr|"
f = open("prof_v5.txt", "r")
lines = f.read().split("\n")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…