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
0cea4e54
Commit
0cea4e54
authored
Jan 29, 2013
by
Janez K
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dodal arff string to orange data table
parent
dbe2455e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
workflows/cforange/db/package_data.json
workflows/cforange/db/package_data.json
+56
-0
workflows/library.py
workflows/library.py
+10
-0
No files found.
workflows/cforange/db/package_data.json
View file @
0cea4e54
...
...
@@ -2199,6 +2199,62 @@
"name": "Utilities"
}
},
{
"pk": 99,
"model": "workflows.abstractwidget",
"fields": {
"category": 13,
"treeview_image": "",
"name": "ARFF string to Orange Data Table",
"is_streaming": false,
"uid": "d978d9ba-40dc-427e-b16f-066f13ada8e5",
"interaction_view": "",
"image": "",
"package": "cforange",
"static_image": "",
"post_interact_action": "",
"user": null,
"visualization_view": "",
"action": "load_dataset_from_arff_string",
"wsdl_method": "",
"wsdl": "",
"interactive": false,
"has_progress_bar": false,
"order": 1,
"description": ""
}
},
{
"pk": 189,
"model": "workflows.abstractinput",
"fields": {
"widget": 99,
"name": "Arff string",
"short_name": "arf",
"uid": "",
"default": "",
"required": false,
"multi": false,
"parameter_type": null,
"variable": "arff",
"parameter": false,
"order": 1,
"description": ""
}
},
{
"pk": 111,
"model": "workflows.abstractoutput",
"fields": {
"widget": 99,
"name": "Orange Data Table",
"short_name": "odt",
"variable": "dataset",
"uid": "",
"order": 1,
"description": ""
}
},
{
"pk": 57,
"model": "workflows.abstractwidget",
...
...
workflows/library.py
View file @
0cea4e54
...
...
@@ -563,6 +563,16 @@ def load_dataset(input_dict):
output_dict
=
{}
output_dict
[
'dataset'
]
=
orange
.
ExampleTable
(
input_dict
[
'file'
])
return
output_dict
def
load_dataset_from_arff_string
(
input_dict
):
import
orange
import
tempfile
f
=
tempfile
.
NamedTemporaryFile
(
delete
=
False
,
suffix
=
'.arff'
)
f
.
write
(
input_dict
[
'arff'
])
f
.
close
()
output_dict
=
{}
output_dict
[
'dataset'
]
=
orange
.
ExampleTable
(
f
.
name
)
return
output_dict
# SATURATION NOISE FILTER
...
...
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