---
title: "Discussion on \"Difference between cross_val_score and cross_val_predict\" | Hashnode"
description: "Discussion on \"Difference between cross_val_score and cross_val_predict\". cross_val_score returns score of test fold where cross_val_predict returns predicted y values for the test fold.\nFor the cross_val_score(), you are using the average of the output, which will be affected by the number of folds because then it may hav..."
url: "https://hashnode.com/posts/difference-between-crossvalscore-and-crossvalpredict/63b2b1bf74c6a21f99e675cd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference between cross\_val\_score and cross\_val\_predict](https://nghiencodedao.hashnode.dev/difference-between-crossvalscore-and-crossvalpredict?utm_source=hashnode&utm_medium=feed)

cross\_val\_score returns score of test fold where cross\_val\_predict returns predicted y values for the test fold. For the cross\_val\_score(), you are using the average of the output, which will be affected by the number of folds because then it may hav...

Jan 2, 2023 · 1 min read · nghiencodedao.hashnode.dev  
Read the article

-   [#cross-validation](https://hashnode.com/tag/cross-validation)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)

## Written by

[Hoang Linh](https://hashnode.com/@hoanglinh96nl)

@hoanglinh96nl

  
[View profile](https://hashnode.com/@hoanglinh96nl)

ai engineer, data scientist

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
