Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs598mp-fall2021-proj
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
chsieh16
cs598mp-fall2021-proj
Commits
a36462a2
Commit
a36462a2
authored
3 years ago
by
aastorg2
Browse files
Options
Downloads
Patches
Plain Diff
changing how python sum function is called for compatabily purposes
parent
c066d08a
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
dtree_learner.py
+1
-2
1 addition, 2 deletions
dtree_learner.py
with
1 addition
and
2 deletions
dtree_learner.py
+
1
−
2
View file @
a36462a2
...
...
@@ -89,8 +89,7 @@ class DTreeLearner(LearnerBase):
@staticmethod
def
_compose_s2f_functions
(
s2f_func_list
):
def
composed_func
(
sample
):
return
sum
((
list
(
f
(
sample
))
for
f
in
s2f_func_list
),
start
=
[])
return
sum
((
list
(
f
(
sample
))
for
f
in
s2f_func_list
),[])
return
composed_func
@staticmethod
...
...
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