thnet.truthnet.train"><code class="name flex">
<span>def <span class="ident">train</span></span>(<span>datapath, modelpath, shapnum=10, target_label=None, query_limit=20, calibration_num=5000)</span>
</code></dt>
<dd>
<div class="desc"><p>Train a Veritas model with specified parameters.</p>
<p>Parameters:
datapath (str): Path to the data file.
modelpath (str): Path to save the trained model.
shapnum (int): Number of samples for SHAP value calculation.
target_label (str): Target label column name.
query_limi