Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Leipzig Machine Learning Group
conML
python
Commits
a6476c0e
Commit
a6476c0e
authored
4 years ago
by
Florian Grosse
Browse files
Options
Downloads
Patches
Plain Diff
Changed split method for stratified split from adapter, fixes Issue
#2
parent
07c2dd01
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
conML/domain/reconstruction/reconstruction.py
+1
-10
1 addition, 10 deletions
conML/domain/reconstruction/reconstruction.py
with
1 addition
and
10 deletions
conML/domain/reconstruction/reconstruction.py
+
1
−
10
View file @
a6476c0e
...
...
@@ -9,6 +9,7 @@ from multiprocessing import Manager
from
conML.shared.logger
import
ReconstructionInfo
from
conML.domain.reconstruction.selection
import
WinnerSelector
from
conML.ports
import
split
InterimPragmatic
=
namedtuple
(
"
InterimPragmatic
"
,
"
model, predictions
"
)
...
...
@@ -560,16 +561,6 @@ class Reconstructor:
self
.
settings
.
min_reliability
=
value
def
split
(
learnblock
,
reliability_sample
):
indices
=
learnblock
.
indices
()
eval_size
=
int
(
learnblock
.
n_rows
()
*
reliability_sample
)
eval_idx
,
train_idx
=
indices
[:
eval_size
],
indices
[
eval_size
:]
return
(
learnblock
.
new_block_from
(
train_idx
,
index
=
True
),
learnblock
.
new_block_from
(
eval_idx
,
index
=
True
)
)
def
valid_reconstructed
(
model
,
knowledge_domain
,
settings
):
"""
Test if the trained supersived model fullfills the accuracy criteria.
...
...
This diff is collapsed.
Click to expand it.
Florian Grosse
@fg27nypu
mentioned in issue
#2 (closed)
·
4 years ago
mentioned in issue
#2 (closed)
mentioned in issue #2
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