Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bolsonaro
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
Luc Giffon
bolsonaro
Commits
d89d9d52
"README.md" did not exist on "dd050cbcd484c630bde453db540b3342460caff4"
Commit
d89d9d52
authored
5 years ago
by
Charly LAMOTHE
Browse files
Options
Downloads
Patches
Plain Diff
Remove two useless concatenate in trainer.py to save space and time
parent
d67e49c8
No related branches found
No related tags found
1 merge request
!3
clean scripts
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/bolsonaro/trainer.py
+2
-2
2 additions, 2 deletions
code/bolsonaro/trainer.py
with
2 additions
and
2 deletions
code/bolsonaro/trainer.py
+
2
−
2
View file @
d89d9d52
...
@@ -25,9 +25,9 @@ class Trainer(object):
...
@@ -25,9 +25,9 @@ class Trainer(object):
self
.
_logger
.
debug
(
'
Fitting the forest on train subset and OMP on dev subset.
'
)
self
.
_logger
.
debug
(
'
Fitting the forest on train subset and OMP on dev subset.
'
)
else
:
else
:
X_forest
=
np
.
concatenate
([
self
.
_dataset
.
X_train
,
self
.
_dataset
.
X_dev
])
X_forest
=
np
.
concatenate
([
self
.
_dataset
.
X_train
,
self
.
_dataset
.
X_dev
])
X_omp
=
np
.
concatenate
([
self
.
_dataset
.
X_train
,
self
.
_dataset
.
X_dev
])
X_omp
=
X_forest
y_forest
=
np
.
concatenate
([
self
.
_dataset
.
y_train
,
self
.
_dataset
.
y_dev
])
y_forest
=
np
.
concatenate
([
self
.
_dataset
.
y_train
,
self
.
_dataset
.
y_dev
])
y_omp
=
np
.
concatenate
([
self
.
_dataset
.
y_train
,
self
.
_dataset
.
y_dev
])
y_omp
=
y_forest
self
.
_logger
.
debug
(
'
Fitting both the forest and OMP on train+dev subsets.
'
)
self
.
_logger
.
debug
(
'
Fitting both the forest and OMP on train+dev subsets.
'
)
model
.
fit
(
model
.
fit
(
...
...
This diff is collapsed.
Click to expand it.
Charly Lamothe
@charly.lamothe
mentioned in commit
28b804c6
·
5 years ago
mentioned in commit
28b804c6
mentioned in commit 28b804c65a0c91741f9dfa5430bc0c861f29a6e4
Toggle commit list
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