Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MentatInnovations/datastream.io
/ functions
Functions
49 in github.com/MentatInnovations/datastream.io
⨍
Functions
49
◇
Types & classes
12
↓ 8 callers
Function
compute_confusion_matrix
(detector_output, index_anomalies)
dsio/anomaly_detectors.py:59
↓ 8 callers
Method
flag_anomaly
(self, x)
examples/lof_anomaly_detector.py:44
↓ 6 callers
Method
fit
(self, x, y=None)
examples/lof_anomaly_detector.py:25
↓ 4 callers
Method
update
(self, x)
dsio/anomaly_detectors.py:89
↓ 3 callers
Method
update
(self, x)
examples/detector.py:22
↓ 2 callers
Function
decision_rule
:param score: a score, assumed normalised (between 0 and 1) representing anomalousness :param threshold: a user-specified threshold above wh
dsio/update_formulae.py:74
↓ 2 callers
Method
fit
(self, x)
dsio/anomaly_detectors.py:83
↓ 2 callers
Function
gen_data_with_obvious_anomalies
:param n: number of total samples, including anomalies, defaults to 1000 :param anomalies: number of anomalies in the sample (should be a sma
dsio/generate_data.py:9
↓ 2 callers
Function
rolling_window_update
:param old: Old data :param new: New data :param w: Controls the size of the rolling window :return: The w most recent datapoints fr
dsio/update_formulae.py:56
↓ 2 callers
Method
score_anomaly
(self, x)
dsio/anomaly_detectors.py:107
↓ 2 callers
Method
score_anomaly
(self, x)
examples/lof_anomaly_detector.py:39
↓ 2 callers
Function
upload_dataframe
Upload dataframe to Elasticsearch
dsio/restream/elastic.py:35
↓ 1 callers
Function
convex_combination
:param a: one summand (e.g., partial sum) :param b: another summand (e.g., the new datapoint) :param weight: the weight of the update (e
dsio/update_formulae.py:15
↓ 1 callers
Function
detect_time
Attempt to detect the time dimension in a dataframe
dsio/helpers.py:51
↓ 1 callers
Method
fit
(self, x)
dsio/anomaly_detectors.py:52
↓ 1 callers
Method
flag_anomaly
(self, x)
dsio/anomaly_detectors.py:112
↓ 1 callers
Function
init_detector_models
Initialize anomaly detector models
dsio/helpers.py:179
↓ 1 callers
Function
init_elasticsearch
(uri)
dsio/restream/elastic.py:17
↓ 1 callers
Function
load_detector
Evaluate modules as Python code and load selecter anomaly detector
dsio/helpers.py:158
↓ 1 callers
Function
main
Main function
dsio/main.py:133
↓ 1 callers
Function
normalize_timefield
(dataframe, timefield, speed=5)
dsio/helpers.py:82
↓ 1 callers
Function
parse_arguments
Parse command line arguments
dsio/helpers.py:16
↓ 1 callers
Function
restream_dataframe
Restream selected sensors & anomaly detector scores from an input pandas dataframe to an existing Elasticsearch instance and/or to a
dsio/main.py:36
↓ 1 callers
Method
score
(self, x)
examples/detector.py:15
↓ 1 callers
Method
score_anomaly
(self, x)
dsio/anomaly_detectors.py:55
↓ 1 callers
Method
score_anomaly
(self, x)
dsio/anomaly_detectors.py:141
↓ 1 callers
Function
select_sensors
(dataframe, sensors, available_sensor_names, timefield)
dsio/helpers.py:137
↓ 1 callers
Function
update_effective_sample_size
:param effective_sample_size: :param batch_size: :param forgetting_factor: :return: >>> update_effective_sample_size(1.0,1.0,1.
dsio/update_formulae.py:30
Method
__init__
(self, msg=None, exc=None)
dsio/exceptions.py:29
Method
__init__
( self, ff=1.0, threshold=THRESHOLD )
dsio/anomaly_detectors.py:72
Method
__init__
( self, ff=1.0, window_size=300, threshold=THRESHOLD )
dsio/anomaly_detectors.py:118
Method
__init__
( self, n_neighbors=20, window_size=1000 )
examples/lof_anomaly_detector.py:16
Method
__init__
(self, )
examples/detector.py:8
Function
batch_redater
send 10 datapoints a second
dsio/restream/elastic.py:28
Method
detect
(self, x)
examples/detector.py:11
Function
elasticsearch_batch_restreamer
Replay input stream into Elasticsearch
dsio/restream/elastic.py:72
Method
fit
(self, x)
dsio/anomaly_detectors.py:129
Method
fit_score
Fits the model on X and scores each datapoint in X. Parameters ---------- X : ndarray, shape (n_samples, n_features)
dsio/anomaly_detectors.py:29
Method
flag_anomaly
(self, x)
dsio/anomaly_detectors.py:49
Method
flag_anomaly
(self, x)
dsio/anomaly_detectors.py:146
Function
generate_dashboard
Returns a bokeh server configured with the dsio dashboard app
dsio/dashboard/bokeh.py:16
Function
generate_dashboard
Generate a Kibana dashboard given a list of sensor names
dsio/dashboard/kibana.py:9
Function
make_document
Generates the dashboard document
dsio/dashboard/bokeh.py:19
Function
threaded_restream_dataframe
Restream dataframe to bokeh and/or Elasticsearch
dsio/main.py:81
Method
train
(self, x)
examples/detector.py:19
Function
update
Check the queue for updates sent by the restreamer thread and pass them over to the bokeh data soure
dsio/dashboard/bokeh.py:61
Method
update
(self, x)
dsio/anomaly_detectors.py:46
Method
update
(self, x)
dsio/anomaly_detectors.py:133
Method
update
(self, x)
examples/lof_anomaly_detector.py:30