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
3bafa452
Commit
3bafa452
authored
5 years ago
by
Léo Bouscarrat
Browse files
Options
Downloads
Patches
Plain Diff
Adding a new regression dataset
parent
36e191bc
No related branches found
Branches containing commit
No related tags found
1 merge request
!15
Resolve "Adding new datasets"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/bolsonaro/data/dataset_loader.py
+3
-0
3 additions, 0 deletions
code/bolsonaro/data/dataset_loader.py
with
3 additions
and
0 deletions
code/bolsonaro/data/dataset_loader.py
+
3
−
0
View file @
3bafa452
...
@@ -110,6 +110,9 @@ class DatasetLoader(object):
...
@@ -110,6 +110,9 @@ class DatasetLoader(object):
elif
name
==
'
kr-vs-kp
'
:
elif
name
==
'
kr-vs-kp
'
:
dataset_loading_func
=
change_binary_func_openml
(
'
kr-vs-kp
'
)
dataset_loading_func
=
change_binary_func_openml
(
'
kr-vs-kp
'
)
task
=
Task
.
BINARYCLASSIFICATION
task
=
Task
.
BINARYCLASSIFICATION
elif
name
==
'
kin8nm
'
:
X
,
y
=
fetch_openml
(
'
kin8nm
'
,
return_X_y
=
True
,
random_state
=
dataset_parameters
.
random_state
)
task
=
Task
.
REGRESSION
else
:
else
:
raise
ValueError
(
"
Unsupported dataset
'
{}
'"
.
format
(
name
))
raise
ValueError
(
"
Unsupported dataset
'
{}
'"
.
format
(
name
))
...
...
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