docstr: Computes the score for the given q. (for the given records).
  
  The alternative hypothesis of MDSS assumes that there exists some constant multiplicative factor q > 1
  for the subset of records being scored by the scoring function.
  q is sometimes refered to as relative risk or severity.
docstr_tok: ["Computes","the","score","for","the","given","q",".","(","for","the","given","records",")",".","The","alternative","hypothesis","of","MDSS","assumes","that","there","exists","some","constant","multiplicative","factor","q",">","1","for","the","subset","of","records","being","scored","by","the","scoring","function",".","q","is","sometimes","refered","to","as","relative","risk","or","severity","."]
code: def score(
      self,
      observed_sum: float,
      expectations: np.array,
      penalty: float,
      q: float,
  ):
      """
      Computes the score for the given q. (for the given records).
  
      The alternative hypothesis of MDSS assumes that there exists some constant multiplicative factor q > 1
      for the subset of records being scored by the scoring function.
      q is sometimes refered to as relative risk or severity.
  
      """
      raise NotImplementedError
  
imports: import numpy
label_desc: Use image node_id 2 for calling the ScoringFunction obj's underlying member method code with example usage: obj.score(observed_sum, expectations, penalty, q) without return types