Please suggest me a library or python code to add padding or reduce data logically /u/edyth933 Python Education

there is some data below:

“`python y_true = [67, 60, 62, 64, 67, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] y_pred = [67, 60, 62, 64, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] # should add padding at index-4

y_true = [67, 60, 62, 64, 67, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] y_pred = [67, 60, 62, 64, 60, 62, 64, 65, 62, 60, 65, 64, 62, 60] # should add padding at index-4 and specific index

y_true = [67, 60, 62, 64, 67, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] y_pred = [65, 67, 60, 62, 64, 67, 60, 62, 64, 60, 65, 64, 62, 60, 65, 64, 62, 60] # should remove index-0 and index-9

confusion_matrix(y_true, y_pred) # error if y_pred size does not match y_true “`

Is there any library or code to solve this case?

submitted by /u/edyth933
[link] [comments]

​r/learnpython there is some data below: “`python y_true = [67, 60, 62, 64, 67, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] y_pred = [67, 60, 62, 64, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] # should add padding at index-4 y_true = [67, 60, 62, 64, 67, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] y_pred = [67, 60, 62, 64, 60, 62, 64, 65, 62, 60, 65, 64, 62, 60] # should add padding at index-4 and specific index y_true = [67, 60, 62, 64, 67, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] y_pred = [65, 67, 60, 62, 64, 67, 60, 62, 64, 60, 65, 64, 62, 60, 65, 64, 62, 60] # should remove index-0 and index-9 confusion_matrix(y_true, y_pred) # error if y_pred size does not match y_true “` Is there any library or code to solve this case? submitted by /u/edyth933 [link] [comments] 

there is some data below:

“`python y_true = [67, 60, 62, 64, 67, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] y_pred = [67, 60, 62, 64, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] # should add padding at index-4

y_true = [67, 60, 62, 64, 67, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] y_pred = [67, 60, 62, 64, 60, 62, 64, 65, 62, 60, 65, 64, 62, 60] # should add padding at index-4 and specific index

y_true = [67, 60, 62, 64, 67, 60, 62, 64, 65, 64, 62, 60, 65, 64, 62, 60] y_pred = [65, 67, 60, 62, 64, 67, 60, 62, 64, 60, 65, 64, 62, 60, 65, 64, 62, 60] # should remove index-0 and index-9

confusion_matrix(y_true, y_pred) # error if y_pred size does not match y_true “`

Is there any library or code to solve this case?

submitted by /u/edyth933
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *