TripleDataset#
- class pinnx.problem.TripleDataset(X_train, y_train, X_test, y_test, approximator=None, loss_fn='MSE', loss_weights=None)[source]#
Dataset with each data point as a triple.
The couple of the first two elements are the input, and the third element is the output. This dataset can be used with the network
DeepONetfor operator learning.- Parameters:
X_train – A tuple of two NumPy arrays.
y_train – A NumPy array.
References