gwcelery.tasks.em_bright module¶
Qualitative source classification for CBC events.
-
(task)
gwcelery.tasks.em_bright.
classifier_other
(args, graceid)[source]¶ Returns the boolean probability of having a NS component and the probability of having non-zero disk mass. This method is used for pipelines that do not provide the data products necessary for computation of the source properties probabilities.
- Parameters
- Returns
JSON formatted string storing
HasNS
andHasRemnant
probabilities- Return type
Example
>>> em_bright.classifier_other((2.0, 1.0, 0.0, 0.0, 10.), 'S123456') '{"HasNS": 1.0, "HasRemnant": 1.0}'
-
(task)
gwcelery.tasks.em_bright.
classifier_gstlal
(args, graceid)[source]¶ Returns the probability of having a NS component and the probability of having non-zero disk mass in the detected event. This method will be using the data products obtained from the weekly supervised learning runs for injections campaigns. The data products are in pickle formatted RandomForestClassifier objects. The method predict_proba of these objects provides us the probabilities of the coalesence being EM-Bright and existence of neutron star in the binary.
- Parameters
- Returns
JSON formatted string storing
HasNS
andHasRemnant
probabilities- Return type
Notes
This task would only work from within the CIT cluster.