tf_compile_model function

Compile a Keras model for truncated data under dist