Feature standardization

All user features are standardized and normalized to be used in user weighting. Standardization is done by looking at the previous n users before the current tweet. Then the average and standard deviation from these n users is used to standardize the feature.

def standardizeFeature(value):
    max_value = avg + (3 * std)
    result = math.log10(value / max_value)
    return result

Last updated