INNER CODE UNIT · Python

__repr__

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

    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")
nlines = len(lines)


def collect_children(parent, start_line_idx):

    for line_idx in range(start_line_idx, nlines):

        l = lines[line_idx]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…