DataFunctionModel

class pyapprox.interface.DataFunctionModel(function, data=None, data_basename=None, save_frequency=None, use_hash=True, digits=16, base_model=None)[source]

Bases: object

Create a queriable function that stores samples and associated function values and returns stored values for samples in the database or otherwise evaluate the function.

Methods Summary

__call__(samples[, return_grad])

Call self as a function.

add_new_data(data)

hash_sample(sample)

Methods Documentation

__call__(samples, return_grad=False)[source]

Call self as a function.

add_new_data(data)[source]
hash_sample(sample)[source]