Advertisement
Guest User

Untitled

a guest
Jan 15th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. In [2]: %run classif_cosp.py
  2. cosp classif_
  3. rare theta
  4. (10395, 41, 41)
  5. Classification...
  6. ---------------------------------------------------------------------------
  7. ValueError Traceback (most recent call last)
  8. ~/pCloudDrive/science/sfanx/scripts/classif_cosp.py in <module>
  9. 91 TIMELAPSE_START = time()
  10. 92 for freq, conds in product(FREQ_DICT, COND_GROUPS):
  11. ---> 93 main(conds, freq)
  12. 94 print("total time lapsed : %s" % elapsed_time(TIMELAPSE_START, time()))
  13.  
  14. ~/pCloudDrive/science/sfanx/scripts/classif_cosp.py in main(conds, freq)
  15. 74 # clf, crossval, data, labels, groups, N_PERM, n_jobs=1
  16. 75 # )
  17. ---> 76 perm_result = cross_val_score(clf, X=data, y=labels, groups=groups, cv=crossval, n_jobs=1)
  18. 77
  19. 78 print(save["acc_score"])
  20.  
  21. ~/electrophy/lib/python3.6/site-packages/sklearn/model_selection/_validation.py in cross_val_score(estimator, X, y, groups, scoring, cv, n_jobs, verbose, fit_params, pre_dispatch, error_score)
  22. 400 fit_params=fit_params,
  23. 401 pre_dispatch=pre_dispatch,
  24. --> 402 error_score=error_score)
  25. 403 return cv_results['test_score']
  26. 404
  27.  
  28. ~/electrophy/lib/python3.6/site-packages/sklearn/model_selection/_validation.py in cross_validate(estimator, X, y, groups, scoring, cv, n_jobs, verbose, fit_params, pre_dispatch, return_train_score, return_estimator, error_score)
  29. 246 if return_estimator:
  30. 247 fitted_estimators = zipped_scores.pop()
  31. --> 248 test_scores, fit_times, score_times = zipped_scores
  32. 249 test_scores = _aggregate_score_dicts(test_scores)
  33. 250
  34.  
  35. ValueError: not enough values to unpack (expected 3, got 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement