[WIP] learn feature weights