penaltymodel.PenaltyModelCache.insert_sampleset#
- PenaltyModelCache.insert_sampleset(samples_like)[source]#
Insert a sample set into the database.
- Parameters:
samples_like – Samples to add to the database. ‘samples_like’ is an extension of NumPy’s array_like. See
dimod.as_samples()
.- Raises:
ValueError – If the variables are not labelled [0, n).