# tf_privacy.linearly_separable_labeled_examples

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/privacy/blob/v0.9.0/privacy/privacy/logistic_regression/datasets.py#L58-L78) |

Generates num_examples labeled examples using separator given by weights.

    tf_privacy.linearly_separable_labeled_examples(
        num_examples: int, weights: np.ndarray
    ) -> RegressionDataset

<br />

<br />

<br />

| ## Args ||
|---|---|
| `num_examples` | number of labeled examples to generate. |
| `weights` | dimension by num_classes matrix containing coefficients of linear separator, where dimension is the dimension and num_classes is the number of classes. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| RegressionDataset consisting of points and labels. Each point has unit l2-norm. ||

<br />