Skip to content

Commit a21dc44

Browse files
tf-model-analysis-teamtfx-copybara
authored andcommitted
Fix documentation for split_extracts and merge_extracts.
PiperOrigin-RevId: 489037705
1 parent 23c5fe8 commit a21dc44

File tree

1 file changed

+4
-4
lines changed
  • tensorflow_model_analysis/utils

1 file changed

+4
-4
lines changed

tensorflow_model_analysis/utils/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -747,12 +747,12 @@ def merge_extracts(extracts: List[types.Extracts],
747747
will not reproduce the exact shape of the original extracts. Arrays in shape
748748
(x,1) will be flattened to (x,). To maintain the original shape of extract
749749
values of array shape (x,1), you must run with these options:
750-
split_extracts(extracts, avoid_scalar_values=False)
750+
split_extracts(extracts, expand_zero_dims=False)
751751
merge_extracts(extracts, squeeze_two_dim_vector=False)
752752
Args:
753753
extracts: Batched TFMA Extracts.
754754
squeeze_two_dim_vector: Determines how the function will handle arrays of
755-
shape (x,1). If flatten_two_dim_vector is True, the array will be squeezed
755+
shape (x,1). If squeeze_two_dim_vector is True, the array will be squeezed
756756
to shape (x,).
757757
758758
Returns:
@@ -845,8 +845,8 @@ def split_extracts(extracts: types.Extracts,
845845
will not reproduce the exact shape of the original extracts. Arrays in shape
846846
(x,1) will be flattened to (x,). To maintain the original shape of extract
847847
values of array shape (x,1), you must run with these options:
848-
split_extracts(extracts, avoid_scalar_values=False)
849-
merge_extracts(extracts, flatten_two_dim_vector=False)
848+
split_extracts(extracts, expand_zero_dims=False)
849+
merge_extracts(extracts, squeeze_two_dim_vector=False)
850850
851851
Args:
852852
extracts: Batched TFMA Extracts.

0 commit comments

Comments
 (0)