The markasjunk plugin shipped with Roundcube provides interfaces to various spam filter training tools but how those tools work is outside the scope of Roundcube, its a server side function. You should talk to who ever runs your mail server for support.
Moderators note: I removed your duplicate posts, please don't do that.