Commit 1e8a2f1
chore!: Remove attach_logprobs parameter from AI operations (#1816)
* Refactor: Remove attach_logprobs parameter from AI operations
This commit removes the `attach_logprobs` parameter from the `filter`, `map`, `classify`, and `join` methods within the `AIAccessor` class in `bigframes/operations/ai.py`.
The associated logic for calculating and attaching the 'logprob' column has also been removed from the `map` method.
System tests in `tests/system/large/operations/test_ai.py` that specifically tested the `attach_logprobs` functionality have been updated by:
- Removing the `attach_logprobs=True` argument from method calls.
- Removing assertions for the 'logprob' column.
- Renaming the test methods to reflect their updated scope (e.g., `test_filter_attach_logprob` to `test_filter_functionality_formerly_attach_logprob`).
The small system tests and experimental notebooks were not affected as they did not utilize this parameter.
* polish tests
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent dc9eb27 commit 1e8a2f1
File tree
2 files changed
+0
-116
lines changed- bigframes/operations
- tests/system/large/operations
2 files changed
+0
-116
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
| |||
103 | 98 | | |
104 | 99 | | |
105 | 100 | | |
106 | | - | |
107 | 101 | | |
108 | 102 | | |
109 | 103 | | |
| |||
114 | 108 | | |
115 | 109 | | |
116 | 110 | | |
117 | | - | |
118 | 111 | | |
119 | 112 | | |
120 | 113 | | |
| |||
180 | 173 | | |
181 | 174 | | |
182 | 175 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | 176 | | |
189 | 177 | | |
190 | 178 | | |
| |||
258 | 246 | | |
259 | 247 | | |
260 | 248 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | 249 | | |
275 | 250 | | |
276 | 251 | | |
| |||
282 | 257 | | |
283 | 258 | | |
284 | 259 | | |
285 | | - | |
286 | 260 | | |
287 | 261 | | |
288 | 262 | | |
| |||
337 | 311 | | |
338 | 312 | | |
339 | 313 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | 314 | | |
346 | 315 | | |
347 | 316 | | |
| |||
367 | 336 | | |
368 | 337 | | |
369 | 338 | | |
370 | | - | |
371 | 339 | | |
372 | 340 | | |
373 | 341 | | |
| |||
376 | 344 | | |
377 | 345 | | |
378 | 346 | | |
379 | | - | |
380 | 347 | | |
381 | 348 | | |
382 | 349 | | |
| |||
428 | 395 | | |
429 | 396 | | |
430 | 397 | | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | 398 | | |
436 | 399 | | |
437 | 400 | | |
| |||
510 | 473 | | |
511 | 474 | | |
512 | 475 | | |
513 | | - | |
514 | 476 | | |
515 | 477 | | |
516 | 478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 69 | | |
95 | 70 | | |
96 | 71 | | |
| |||
259 | 234 | | |
260 | 235 | | |
261 | 236 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 237 | | |
288 | 238 | | |
289 | 239 | | |
| |||
478 | 428 | | |
479 | 429 | | |
480 | 430 | | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | 431 | | |
510 | 432 | | |
511 | 433 | | |
| |||
0 commit comments