parsnip.ParsnipModel.score
- ParsnipModel.score(dataset, rounds=1, return_components=False, sample=True)
Evaluate the loss function on a given dataset.
- Parameters:
dataset (
Dataset) – Dataset to run onrounds (int, optional) – Number of rounds to use for evaluation. VAEs are stochastic, so the loss function is not deterministic. By running for multiple rounds, the uncertainty on the loss function can be decreased. Default 1.
return_components (bool, optional) – Whether to return the individual parts of the loss function, by default False. See
loss_functionfor details.
- Returns:
Computed loss function
- Return type:
loss