Skip to content

cps_mond_norm.predict gives results per bin, not per test instance #22

Answered by henrikbostrom
RichardPlat asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Sorry for the late response!

Since providing "cpds_by_bins=False" to cps_mond_norm.predict(...) raises an error (due to an unexpected keyword argument) in your case, I suggest that you check that "cps_mond_norm" indeed is an object of the correct type; type(cps_mond_norm) should give crepes.base.ConformalPredictiveSystem.

The example call that you provide is exactly the one given in the notebook for version 0.6.1, except for that "sigmas_test" in your example is "sigmas_test_knn_res" in the notebook, which indeed results in a vector of the same length as the number of test objects (as shown in the notebook). The subsequent example in the notebook shows the result of providing "cpds_by…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by henrikbostrom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants