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
2b8b4f07
Commit
2b8b4f07
authored
May 01, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imports from KE updated to new names
parent
a1f6873d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
dream/plugins/DefaultTabularExit.py
dream/plugins/DefaultTabularExit.py
+4
-4
dream/plugins/plugin.py
dream/plugins/plugin.py
+4
-4
No files found.
dream/plugins/DefaultTabularExit.py
View file @
2b8b4f07
...
...
@@ -55,10 +55,10 @@ class DefaultTabularExit(plugin.OutputPreparationPlugin):
return
data
def
getConfidenceInterval
(
self
,
value_list
,
confidenceLevel
):
from
dream.KnowledgeExtraction.ConfidenceIntervals
import
Intervals
from
dream.KnowledgeExtraction.StatisticalMeasures
import
Basic
StatisticalMeasures
BSM
=
Basic
StatisticalMeasures
()
lb
,
ub
=
Intervals
().
ConfidIntervals
(
value_list
,
confidenceLevel
)
from
dream.KnowledgeExtraction.ConfidenceIntervals
import
Confidence
Intervals
from
dream.KnowledgeExtraction.StatisticalMeasures
import
StatisticalMeasures
BSM
=
StatisticalMeasures
()
lb
,
ub
=
Confidence
Intervals
().
ConfidIntervals
(
value_list
,
confidenceLevel
)
return
{
'lb'
:
lb
,
'ub'
:
ub
,
'avg'
:
BSM
.
mean
(
value_list
)
...
...
dream/plugins/plugin.py
View file @
2b8b4f07
...
...
@@ -35,10 +35,10 @@ class Plugin(object):
# calcualted the confidence inteval for a list and a confidence level
def
getConfidenceInterval
(
self
,
value_list
,
confidenceLevel
):
from
dream.KnowledgeExtraction.ConfidenceIntervals
import
Intervals
from
dream.KnowledgeExtraction.StatisticalMeasures
import
Basic
StatisticalMeasures
BSM
=
Basic
StatisticalMeasures
()
lb
,
ub
=
Intervals
().
ConfidIntervals
(
value_list
,
confidenceLevel
)
from
dream.KnowledgeExtraction.ConfidenceIntervals
import
Confidence
Intervals
from
dream.KnowledgeExtraction.StatisticalMeasures
import
StatisticalMeasures
BSM
=
StatisticalMeasures
()
lb
,
ub
=
Confidence
Intervals
().
ConfidIntervals
(
value_list
,
confidenceLevel
)
return
{
'lb'
:
lb
,
'ub'
:
ub
,
'avg'
:
BSM
.
mean
(
value_list
)
...
...
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