Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ease
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ease
Commits
7be3c43a
Commit
7be3c43a
authored
May 29, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change error logging for an error we're suppressing to debug logging
parent
9c2c28aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ease/model_creator.py
+4
-3
No files found.
ease/model_creator.py
View file @
7be3c43a
...
...
@@ -101,9 +101,10 @@ def get_cv_error(clf,feats,scores):
results
[
'mae'
]
=
err
results
[
'kappa'
]
=
kappa
results
[
'success'
]
=
True
except
ValueError
:
#If this is hit, everything is fine. It is hard to explain why the error occurs, but it isn't a big deal.
log
.
exception
(
"Not enough classes (0,1,etc) in each cross validation fold."
)
except
ValueError
as
ex
:
# If this is hit, everything is fine. It is hard to explain why the error occurs, but it isn't a big deal.
msg
=
u"Not enough classes (0,1,etc) in each cross validation fold: {ex}"
.
format
(
ex
=
ex
)
log
.
debug
(
msg
)
except
:
log
.
exception
(
"Error getting cv error estimates."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment