Skip to content

Commit 2dc0c10

Browse files
committed
fix data_source fn call
1 parent bc13f13 commit 2dc0c10

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

nemo/NeMo-Safe-Synthesizer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install the sdk as follows:
1111
```bash
1212
uv venv
1313
source .venv/bin/activate
14-
uv pip install nemo-microservices[safe-synthesizer]
14+
uv pip install nemo-microservices[safe-synthesizer] rich
1515
```
1616

1717
Be sure to select this virtual environment as your kernel when running the notebooks.

nemo/NeMo-Safe-Synthesizer/advanced/advanced_privacy.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
"source": [
185185
"job = (\n",
186186
" SafeSynthesizerJobBuilder(client)\n",
187-
" .from_data_source(df)\n",
187+
" .with_data_source(df)\n",
188188
" .with_datastore(datastore_config)\n",
189189
" .with_replace_pii()\n",
190190
" .with_differential_privacy(dp_enabled=True, epsilon=8.0)\n",

nemo/NeMo-Safe-Synthesizer/advanced/replace_pii_only.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
"source": [
158158
"job = (\n",
159159
" SafeSynthesizerJobBuilder(client)\n",
160-
" .from_data_source(df)\n",
160+
" .with_data_source(df)\n",
161161
" .with_datastore(datastore_config)\n",
162162
" .with_replace_pii()\n",
163163
" .create_job()\n",

nemo/NeMo-Safe-Synthesizer/intro/safe_synthesizer_101.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"\n",
155155
"The following code creates and submits a job:\n",
156156
"- `SafeSynthesizerBuilder(client)`: initialize with the NeMo Microservices client.\n",
157-
"- `.from_data_source(df)`: set the input data source.\n",
157+
"- `.with_data_source(df)`: set the input data source.\n",
158158
"- `.with_datastore(datastore_config)`: configure model artifact storage.\n",
159159
"- `.with_replace_pii()`: enable automatic replacement of PII.\n",
160160
"- `.synthesize()`: train and generate synthetic data.\n",
@@ -170,7 +170,7 @@
170170
"source": [
171171
"job = (\n",
172172
" SafeSynthesizerJobBuilder(client)\n",
173-
" .from_data_source(df)\n",
173+
" .with_data_source(df)\n",
174174
" .with_datastore(datastore_config)\n",
175175
" .with_replace_pii()\n",
176176
" .synthesize()\n",

0 commit comments

Comments
 (0)