Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Leipzig Machine Learning Group
conML
python
Commits
13c036ee
Commit
13c036ee
authored
5 years ago
by
dmt
Browse files
Options
Downloads
Patches
Plain Diff
Define temporary methods to extract blocks, time_sigma_relatives and estimate density.
parent
312493e0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cml/domain/data_source.py
+10
-0
10 additions, 0 deletions
cml/domain/data_source.py
with
10 additions
and
0 deletions
cml/domain/data_source.py
+
10
−
0
View file @
13c036ee
...
...
@@ -108,6 +108,16 @@ class DataSource:
def
__len__
(
self
):
return
self
.
__source
.
length
def
get_block
(
self
,
indices
=
None
):
return
self
.
__source
.
get_block_via_index
(
indices
)
def
time_sigma_relatives
(
self
,
block
):
return
next
(
iter
(
self
.
__learnblock_identifier
.
_identify_relatives
(
block
,
"
T
"
,
"
Sigma
"
)))
def
estimate_density
(
self
,
data
):
return
self
.
__learnblock_identifier
.
density_estimator
(
data
).
density
()
class
Preprocessor
:
TIME_COLUMN
=
"
T
"
...
...
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