Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
c9e66a58
Commit
c9e66a58
authored
Apr 24, 2015
by
panos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Example ammended based on the objects name changes
parent
3702fc10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dream/KnowledgeExtraction/KEtool_examples/ConveyerLine/KEtool_MainScript.py
...raction/KEtool_examples/ConveyerLine/KEtool_MainScript.py
+6
-6
No files found.
dream/KnowledgeExtraction/KEtool_examples/ConveyerLine/KEtool_MainScript.py
View file @
c9e66a58
...
...
@@ -22,12 +22,12 @@ Created on 4 Apr 2015
# along with DREAM. If not, see <http://www.gnu.org/licenses/>.
# ===========================================================================
from
dream.KnowledgeExtraction.ImportCSVdata
import
Import
_CSV
from
dream.KnowledgeExtraction.ImportCSVdata
import
Import
CSVdata
from
dream.KnowledgeExtraction.DistributionFitting
import
Distributions
from
dream.KnowledgeExtraction.DistributionFitting
import
DistFittest
from
dream.KnowledgeExtraction.JSONOutput
import
JSONOutput
from
dream.KnowledgeExtraction.DetectOutliers
import
Handle
Outliers
from
dream.KnowledgeExtraction.ReplaceMissingValues
import
Handl
eMissingValues
from
dream.KnowledgeExtraction.DetectOutliers
import
Detect
Outliers
from
dream.KnowledgeExtraction.ReplaceMissingValues
import
Replac
eMissingValues
import
json
import
os
################### Import data using the ImportCSVdataobject ###################################
...
...
@@ -40,7 +40,7 @@ def main(test=0, CSVFileName1='InterArrivalData.csv',
if
csvFile1
:
CSVFileName1
=
csvFile1
.
name
CSV
=
Import
_CSV
()
#call the Import_CSV module and using its method Input_data import the data set from the CSV file to the tool
CSV
=
Import
CSVdata
()
#call the Import_CSV module and using its method Input_data import the data set from the CSV file to the tool
procData
=
CSV
.
Input_data
(
CSVFileName2
)
sourceData
=
CSV
.
Input_data
(
CSVFileName1
)
M1
=
procData
.
get
(
'M1'
,[])
#get from the returned Python dictionary the data sets
...
...
@@ -49,13 +49,13 @@ def main(test=0, CSVFileName1='InterArrivalData.csv',
################### Processing of the data sets calling the following objects ###################################
#Replace missing values calling the corresponding object
missingValues
=
Handl
eMissingValues
()
missingValues
=
Replac
eMissingValues
()
M1
=
missingValues
.
DeleteMissingValue
(
M1
)
M2
=
missingValues
.
DeleteMissingValue
(
M2
)
S1
=
missingValues
.
ReplaceWithMean
(
S1
)
#Detect outliers calling the DetectOutliers object
outliers
=
Handle
Outliers
()
outliers
=
Detect
Outliers
()
M1
=
outliers
.
DeleteExtremeOutliers
(
M1
)
M2
=
outliers
.
DeleteExtremeOutliers
(
M2
)
S1
=
outliers
.
DeleteOutliers
(
S1
)
...
...
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