8000 DOC Update model_persistence.rst to fix skops example (#25993) · scikit-learn/scikit-learn@9ed51ce · GitHub < 8000 meta name="twitter:image" content="https://opengraph.githubassets.com/568906e477676cdfe97427d18d2095622a9b35713661da18f83e07e08a71bc3a/scikit-learn/scikit-learn/commit/9ed51ce8176f2264a9d7fc4100878a7ef2376570" />
[go: up one dir, main page]

Skip to content

Commit 9ed51ce

Browse files
DOC Update model_persistence.rst to fix skops example (#25993)
Co-authored-by: adrinjalali <adrin.jalali@gmail.com>
1 parent 0a45c71 commit 9ed51ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/model_persistence.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ trusted by you. You can get existing unknown types in a dumped object / file
126126
using :func:`skops.io.get_untrusted_types`, and after checking its contents,
127127
pass it to the load function::
128128

129-
unknown_types = sio.get_untrusted_types(obj)
129+
unknown_types = sio.get_untrusted_types(data=obj)
130130
clf = sio.loads(obj, trusted=unknown_types)
131131

132132
If you trust the source of the file / object, you can pass ``trusted=True``::

0 commit comments

Comments
 (0)
0