Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clowdflows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Imène Lajili
clowdflows
Commits
ac727b2a
Commit
ac727b2a
authored
Jan 21, 2013
by
Janez K
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dodal cross validation v orange
parent
07dd4f08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
103 additions
and
1 deletion
+103
-1
workflows/cforange/db/package_data.json
workflows/cforange/db/package_data.json
+92
-0
workflows/cforange/library.py
workflows/cforange/library.py
+11
-1
No files found.
workflows/cforange/db/package_data.json
View file @
ac727b2a
...
...
@@ -583,6 +583,98 @@
"description"
:
""
}
},
{
"pk"
:
73
,
"model"
:
"workflows.abstractwidget"
,
"fields"
:
{
"category"
:
12
,
"treeview_image"
:
""
,
"name"
:
"Cross Validation"
,
"is_streaming"
:
false
,
"uid"
:
"6c168f2e-e47f-409a-97c1-58d50fbbec4d"
,
"interaction_view"
:
""
,
"image"
:
""
,
"package"
:
"cforange"
,
"static_image"
:
""
,
"post_interact_action"
:
""
,
"user"
:
null
,
"visualization_view"
:
""
,
"action"
:
"cforange_cross_validation"
,
"wsdl_method"
:
""
,
"wsdl"
:
""
,
"interactive"
:
false
,
"has_progress_bar"
:
false
,
"order"
:
1
,
"description"
:
""
}
},
{
"pk"
:
138
,
"model"
:
"workflows.abstractinput"
,
"fields"
:
{
"widget"
:
73
,
"name"
:
"Dataset"
,
"short_name"
:
"odt"
,
"uid"
:
"16d1fe96-ce53-4a94-8c3e-90ac444b45f8"
,
"default"
:
""
,
"required"
:
false
,
"multi"
:
false
,
"parameter_type"
:
null
,
"variable"
:
"dataset"
,
"parameter"
:
false
,
"order"
:
1
,
"description"
:
""
}
},
{
"pk"
:
139
,
"model"
:
"workflows.abstractinput"
,
"fields"
:
{
"widget"
:
73
,
"name"
:
"Learners"
,
"short_name"
:
"lrn"
,
"uid"
:
"499f4007-55c3-431c-93ca-5f493a9e592c"
,
"default"
:
""
,
"required"
:
false
,
"multi"
:
true
,
"parameter_type"
:
null
,
"variable"
:
"learners"
,
"parameter"
:
false
,
"order"
:
2
,
"description"
:
""
}
},
{
"pk"
:
140
,
"model"
:
"workflows.abstractinput"
,
"fields"
:
{
"widget"
:
73
,
"name"
:
"Folds"
,
"short_name"
:
"fld"
,
"uid"
:
"2b7ef618-6f7a-4f0c-ad5f-50000aa5ec0b"
,
"default"
:
"10"
,
"required"
:
false
,
"multi"
:
false
,
"parameter_type"
:
"text"
,
"variable"
:
"folds"
,
"parameter"
:
true
,
"order"
:
3
,
"description"
:
""
}
},
{
"pk"
:
75
,
"model"
:
"workflows.abstractoutput"
,
"fields"
:
{
"widget"
:
73
,
"name"
:
"Results"
,
"short_name"
:
"res"
,
"variable"
:
"results"
,
"uid"
:
"e966fc28-1217-4922-a0d7-d26cdc872872"
,
"order"
:
1
,
"description"
:
""
}
},
{
"pk"
:
56
,
"model"
:
"workflows.abstractwidget"
,
...
...
workflows/cforange/library.py
View file @
ac727b2a
...
...
@@ -50,4 +50,14 @@ def cforange_filter_relieff(input_dict):
new_dataset
=
orngFSS
.
filterRelieff
(
data
,
measure
,
margin
)
output_dict
=
{}
output_dict
[
'new_dataset'
]
=
new_dataset
return
output_dict
\ No newline at end of file
return
output_dict
def
cforange_cross_validation
(
input_dict
):
import
orange
,
orngTest
,
orngStat
learners
=
input_dict
[
'learners'
]
data
=
input_dict
[
'dataset'
]
folds
=
int
(
input_dict
[
'folds'
])
results
=
orngTest
.
crossValidation
(
learners
,
data
,
folds
=
folds
)
output_dict
=
{}
output_dict
[
'results'
]
=
results
return
output_dict
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment