public void setNumberOfSamples(Integer numberOfSamples) {
        this.numberOfSamples = numberOfSamples;
    }
<p>
The number of samples to be used for analysis by the Kernal SHAP algorithm.
</p>
<note>
<p>
The number of samples determines the size of the synthetic dataset, which has an impact on latency of
explainability requests. For more information, see the <b>Synthetic data</b> of <a
href="https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html"
>Configure and create an endpoint</a>.
</p>
</note>

@param numberOfSamples
       The number of samples to be used for analysis by the Kernal SHAP algorithm. </p> <note>
       <p>
       The number of samples determines the size of the synthetic dataset, which has an impact on latency of
       explainability requests. For more information, see the <b>Synthetic data</b> of <a href=
       "https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html"
       >Configure and create an endpoint</a>.
       </p>
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ClarifyShapConfig.java