Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KerasROOTClassification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nikolai.Hartmann
KerasROOTClassification
Commits
f2b50881
Commit
f2b50881
authored
6 years ago
by
Nikolai Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
some comments
parent
9dbc0793
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit.py
+8
-0
8 additions, 0 deletions
toolkit.py
with
8 additions
and
0 deletions
toolkit.py
+
8
−
0
View file @
f2b50881
...
...
@@ -991,6 +991,10 @@ class ClassificationProject(object):
def
predict
(
self
,
x
,
mode
=
None
):
"""
Calculate the scores for a (transformed) array of input values.
If the array is not transformed, use `evaluate` instead
"""
if
mode
is
None
:
# normal output - after activation function output layer
return
self
.
model
.
predict
(
x
)
...
...
@@ -1010,6 +1014,10 @@ class ClassificationProject(object):
def
evaluate
(
self
,
x_eval
,
mode
=
None
):
"""
Calculate the scores for an array of input values.
All nescessary transformations are applied.
"""
logger
.
debug
(
"
Evaluate score for {}
"
.
format
(
x_eval
))
x_eval
=
self
.
transform
(
x_eval
)
logger
.
debug
(
"
Evaluate for transformed array: {}
"
.
format
(
x_eval
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment