code: def get_loss_ratios(self):
          
          lst = [('user_provided', numpy.bool)]
          for cp in self.curve_params:
              lst.append((cp.loss_type, F32, len(cp.ratios)))
          loss_ratios = numpy.zeros(1, numpy.dtype(lst))
          for cp in self.curve_params:
              loss_ratios['user_provided'] = cp.user_provided
              loss_ratios[cp.loss_type] = tuple(cp.ratios)
          return loss_ratios
docs: :returns: a 1-dimensional composite array with loss ratios by loss type