cerebralcortex.algorithms.utils package

Submodules

cerebralcortex.algorithms.utils.feature_normalization module

normalize_features(data, index_of_first_order_feature=2, lower_percentile=20, higher_percentile=99, minimum_minutes_in_day=60, no_features=11, epsilon=1e-08, input_feature_array_name='features')[source]
Parameters:
  • data
  • index_of_first_order_feature
  • lower_percentile
  • higher_percentile
  • minimum_minutes_in_day
  • no_features
  • epsilon
  • input_feature_array_name

Returns:

cerebralcortex.algorithms.utils.mprov_helper module

CC_MProvAgg(in_stream_name, op, out_stream_name, in_stream_key=['index'], out_stream_key=['index'], map=None, graph_name=None)[source]
CC_get_prov_connection(graph_name=None)[source]
MProvAgg_empty()[source]

This is an empty decorator. This will be applied if mprov server setting is OFF

write_metadata_to_mprov(metadata)[source]

cerebralcortex.algorithms.utils.util module

update_metadata(stream_metadata, stream_name, stream_desc, module_name, module_version, authors: list, input_stream_names: list = [], annotations: list = []) → cerebralcortex.core.metadata_manager.stream.metadata.Metadata[source]

Create Metadata object with some sample metadata of phone battery data :param stream_metadata: :param stream_name: :param stream_desc: :param module_name: :param module_version: :param authors: List of authors names and emails ids in dict. For example, authors = [{“ali”:”ali@gmail.com”}, {“nasir”:”nasir@gmail.com”}] :type authors: list[dict] :param input_stream_names: :param annotations:

Returns:metadata of phone battery stream
Return type:Metadata

Module contents