We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f4b77 commit 207f1f2Copy full SHA for 207f1f2
drevalpy/cli_run_cv.py
@@ -78,7 +78,8 @@ def cv_split():
78
args = parser.parse_args()
79
80
# load the response data and split it into CV splits
81
- response_data = pickle.load(open(args.response, "rb"))
+ with open(args.response, "rb") as f:
82
+ response_data = pickle.load(f)
83
response_data.remove_nan_responses()
84
response_data.split_dataset(
85
n_cv_splits=args.n_cv_splits,
0 commit comments