tensorflow / lattice

Lattice methods in TensorFlow
Apache License 2.0
518 stars 94 forks source link

How to select number of keypoints? #71

Closed SaiAditya2595 closed 2 years ago

SaiAditya2595 commented 2 years ago

I have seen some TF lattice files where pwl_calibration_num_keypoints are 5,10,20. How to select and set these keypoints?

mmilanifard commented 2 years ago

These, among other hyper-parameters, are often chosen using cross-validation on a held out data set. The model complexity increases with the number of trained calibration keypoints, so there might be overfitting if the number is too large for the size of the training dataset.