Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetManAIOps/donut
/ functions
Functions
68 in github.com/NetManAIOps/donut
⨍
Functions
68
◇
Types & classes
18
↓ 16 callers
Method
get_iterator
Iterate through the sliding windows of each array in `arrays`. This method is not re-entrant, i.e., calling :meth:`get_iterator`
donut/utils.py:96
↓ 11 callers
Method
get_score
Get the `reconstruction probability` of specified KPI observations. The larger `reconstruction probability`, the less likely a point
donut/prediction.py:94
↓ 11 callers
Function
masked_reconstruct
Replace masked elements of `x` with reconstructed outputs. This method can be used to do missing data imputation on `x`, with the recons
donut/reconstruction.py:7
↓ 10 callers
Method
get_score
Get the reconstruction probability for `x` and `y`. The larger `reconstruction probability`, the less likely a point is anom
donut/model.py:163
↓ 9 callers
Method
_check_output
(self, iterator, answer)
tests/test_utils.py:36
↓ 9 callers
Function
complete_timestamp
Complete `timestamp` such that the time interval is homogeneous. Zeros will be inserted into each array in `arrays`, at missing points.
donut/preprocessing.py:6
↓ 8 callers
Method
fit
Train the :class:`Donut` model with given data. Args: values (np.ndarray): 1-D `float32` array, the standardized
donut/training.py:188
↓ 7 callers
Function
standardize_kpi
Standardize a Args: values (np.ndarray): 1-D `float32` array, the KPI observations. mean (float): If not :obj:`None`, will us
donut/preprocessing.py:72
↓ 6 callers
Method
augment
Generate augmented data. Args: values (np.ndarray): 1-D float32 array of shape `(data_length,)`, the sta
donut/augmentation.py:23
↓ 6 callers
Function
minibatch_slices_iterator
Iterate through all the mini-batch slices. Args: length (int): Total length of data in an epoch. batch_size (int): Size of e
donut/utils.py:6
↓ 5 callers
Method
get_training_loss
Get the training loss for `x` and `y`. Args: x (tf.Tensor): 2-D `float32` :class:`tf.Tensor`, the windows of
donut/model.py:124
↓ 4 callers
Function
iterative_masked_reconstruct
Iteratively reconstruct `x` with `mask` for `iter_count` times. This method will call :func:`masked_reconstruct` for `iter_count` times,
donut/reconstruction.py:71
↓ 4 callers
Method
model
Get the :class:`Donut` model instance. Returns: Donut: The :class:`Donut` model instance.
donut/training.py:179
↓ 3 callers
Method
_payload
(self)
tests/test_training.py:18
↓ 2 callers
Function
read_file
(path)
setup.py:19
↓ 1 callers
Method
__init__
(self, mean, std)
donut/augmentation.py:17
↓ 1 callers
Method
_augment
Derived classes should override this to actually implement the data augmentation algorithm.
donut/augmentation.py:52
↓ 1 callers
Method
_get_score
(self)
donut/prediction.py:60
↓ 1 callers
Method
_get_score_without_y
(self)
donut/prediction.py:73
↓ 1 callers
Method
mean
Get the mean of the training data.
donut/augmentation.py:60
↓ 1 callers
Method
std
Get the standard deviation of training data.
donut/augmentation.py:65
Method
__init__
(self, vae)
tests/test_model.py:74
Method
__init__
(self, mean, std, missing_rate)
donut/augmentation.py:80
Method
__init__
(self, array_size, window_size, batch_size, excludes=None, shuffle=False, ignore_incomplete_b
donut/utils.py:54
Method
__init__
(self, model, n_z=1024, mcmc_iteration=10, batch_size=32, feed_dict=None, last_point_only=Tru
donut/prediction.py:37
Method
__init__
(self, model, model_vs=None, n_z=None, feed_dict=None, valid_feed_dict=None,
donut/training.py:71
Method
__init__
(self, h_for_p_x, h_for_q_z, x_dims, z_dims, std_epsilon=1e-4, name=None, scope=None)
donut/model.py:59
Method
_augment
(self, values, labels, missing)
donut/augmentation.py:89
Method
_variational
(self, x, z=None, n_z=None)
tests/test_model.py:80
Method
get_donut
()
tests/test_model.py:28
Method
get_training_objective
(self, *args, **kwargs)
donut/model.py:158
Method
missing_rate
Get the ratio of missing points to inject.
donut/augmentation.py:85
Method
mklabel
(p=.01, n=1000)
tests/test_training.py:19
Method
model
Get the :class:`Donut` model instance. Returns: Donut: The :class:`Donut` model instance.
donut/prediction.py:85
Method
r_prob
(x, z, n_z=None, x_in=None)
tests/test_model.py:179
Function
softplus_std
(inputs, units, epsilon, name)
donut/model.py:18
Method
test_apply_mean_std
(self)
tests/test_preprocessing.py:88
Method
test_arrays
(self)
tests/test_preprocessing.py:40
Method
test_augment
(self)
tests/test_augmentation.py:23
Method
test_augment
(self)
tests/test_augmentation.py:54
Method
test_basic
(self)
tests/test_utils.py:66
Method
test_compute_mean_std
(self)
tests/test_preprocessing.py:74
Method
test_construction
(self)
tests/test_utils.py:44
Method
test_construction_args
(self)
tests/test_training.py:53
Method
test_dynamic
(self)
tests/test_reconstruction.py:53
Method
test_error_construction
(self)
tests/test_model.py:58
Method
test_errors
(self)
tests/test_preprocessing.py:94
Method
test_excludes
(self)
tests/test_utils.py:174
Method
test_fit
(self)
tests/test_training.py:33
Method
test_fit_args
(self)
tests/test_training.py:94
Method
test_get_score
(self)
tests/test_model.py:148
Method
test_ignore_incomplete
(self)
tests/test_utils.py:107
Method
test_iterative_masked_reconstruct
(self)
tests/test_reconstruction.py:81
Method
test_minibatch_slices_iterator
(self)
tests/test_utils.py:11
Method
test_prediction
(self)
tests/test_prediction.py:20
Method
test_props
(self)
tests/test_model.py:14
Method
test_props
(self)
tests/test_augmentation.py:13
Method
test_props
(self)
tests/test_augmentation.py:50
Method
test_shuffle
(self)
tests/test_utils.py:152
Method
test_static
(self)
tests/test_reconstruction.py:11
Method
test_timestamp
(self)
tests/test_preprocessing.py:11
Method
test_training_loss
(self)
tests/test_model.py:72
Method
test_validate_arrays
(self)
tests/test_utils.py:57
Method
test_variable_reuse
(self)
tests/test_model.py:26
Method
vae
Get the VAE object of this :class:`Donut` model. Returns: VAE: The VAE object of this model.
donut/model.py:115
Function
wrap_params_net
(inputs, h_for_dist, mean_layer, std_layer)
donut/model.py:22
Method
x_dims
Get the number of `x` dimensions.
donut/model.py:105
Method
z_dims
Get the number of `z` dimensions.
donut/model.py:110