adaptive icon indicating copy to clipboard operation
adaptive copied to clipboard

Question: Running a learning for additional points after some amount of points was computed

Open serhiy-yevtushenko opened this issue 8 months ago • 2 comments

Hi

My question is the following:

how one could run a learner again after sampling a certain amount of points.

I have tried following:

run LearnerND for sampling 2000 points.

Saved them to the dataframe

Started new run.

Created new instance of LeanerND with same initial parameters and function.

Loaded points generated from old session using

learner.load_dataframe(initial_df,
                           with_default_function_args=False,
                           point_names=("x", "y"),
                           value_name="value"

)

and tried running

    points = len(initial_df)+110
    runner=BlockingRunner(learner, npoints_goal=points)
    df = learner.to_dataframe(point_names=("x", "y"))

However, I get the exception:

raise ValueError("Point already in triangulation.")

from add_point (line 629, in add_point, called from line 605, in _try_adding_pending_point_to_simplex)

serhiy-yevtushenko avatar Feb 20 '25 12:02 serhiy-yevtushenko