Skip to content

Shape error in GP_CAM ingest #1611

@roussel-ryan

Description

@roussel-ryan

The following code causes a shape error when the generator ingests data. Also the argument to the generator for vocs should be lowercase VOCS -> vocs to be consistent with other generators

vocs = VOCS(
    variables={
        "x0": [-2.0,2.0],
        "x1": [-1.0,1.0],
        },
    objectives={"f": "MINIMIZE"},
)

gen = GP_CAM(VOCS=vocs)

data = [{'x0': 1.4233628912859966,
  'x1': 0.9860162868747817,
  'f': 3.551676903976317,
  'xopt_runtime': 7.800059393048286e-06,
  'xopt_error': False},
 {'x0': -0.040931341901514706,
  'x1': 0.0007829138541799452,
  'f': 0.006661108588245912,
  'xopt_runtime': 3.0999071896076202e-06,
  'xopt_error': False},
]
gen.ingest(data)

self.my_gp = GP(self.all_x, self.all_y.flatten(), noise_variances=noise_var)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions