MadLib._internal.featurization.score

MadLib._internal.featurization.score(fvs: DataFrame, features: DataFrame) DataFrame[source]

computes a score by summing up the positively correlated features score in the feature vectors

Parameters:
  • fvs (pandas DataFrame) – DataFrame with feature vectors created with the following schema: (id2, id1, fv, other columns from candidates)

  • features (pandas DataFrame) – a DataFrame containing initialized feature objects for columns in A, B