Skip to content
Snippets Groups Projects
Commit 5b470c23 authored by Yannick DAYER's avatar Yannick DAYER
Browse files

[doc] Update the doctests to expect a float score.

parent 71672c7c
No related branches found
No related tags found
1 merge request!74Set the factor analysis score functions to always return a float
Pipeline #69801 passed
...@@ -346,8 +346,8 @@ The snippet bellow shows how to: ...@@ -346,8 +346,8 @@ The snippet bellow shows how to:
>>> # Probing >>> # Probing
>>> probe_data = np.array([[1.2, 0.1, 1.4], [0.5, 0.2, 0.3]]) >>> probe_data = np.array([[1.2, 0.1, 1.4], [0.5, 0.2, 0.3]])
>>> score = isv_machine.score_using_array(model, probe_data) >>> score = isv_machine.score_using_array(model, probe_data)
>>> print(score) >>> print(round(score, 3))
[2.754] 2.754
...@@ -407,8 +407,8 @@ such session variability model. ...@@ -407,8 +407,8 @@ such session variability model.
>>> probe_data = np.array([[1.2, 0.1, 1.4], [0.5, 0.2, 0.3]]) >>> probe_data = np.array([[1.2, 0.1, 1.4], [0.5, 0.2, 0.3]])
>>> score = jfa_machine.score_using_array(model, probe_data) >>> score = jfa_machine.score_using_array(model, probe_data)
>>> print(score) >>> print(round(score, 3))
[0.471] 0.471
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment