Skip to content

Commit

Permalink
Split bins into num_bins and bin_boundaries arguments for discretization
Browse files Browse the repository at this point in the history
Rather than overload a single argument by type (with different implications for adapt), we will
split out a num_bins argument for the adapt use case. This matches the argument name in other
preprocessing layers (e.g. Hashing).

PiperOrigin-RevId: 362167274
  • Loading branch information
mattdangerw authored and tensorflower-gardener committed Mar 11, 2021
1 parent 02dbfed commit bcd8b23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ tf_class {
}
member_method {
name: "__init__"
argspec: "args=[\'self\', \'bins\', \'epsilon\'], varargs=None, keywords=kwargs, defaults=[\'0.01\'], "
argspec: "args=[\'self\', \'bin_boundaries\', \'num_bins\', \'epsilon\'], varargs=None, keywords=kwargs, defaults=[\'None\', \'None\', \'0.01\'], "
}
member_method {
name: "adapt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ tf_class {
}
member_method {
name: "__init__"
argspec: "args=[\'self\', \'bins\', \'epsilon\'], varargs=None, keywords=kwargs, defaults=[\'0.01\'], "
argspec: "args=[\'self\', \'bin_boundaries\', \'num_bins\', \'epsilon\'], varargs=None, keywords=kwargs, defaults=[\'None\', \'None\', \'0.01\'], "
}
member_method {
name: "adapt"
Expand Down

0 comments on commit bcd8b23

Please sign in to comment.